W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
將以下內(nèi)容添加到每個(gè)Thrift網(wǎng)關(guān)的hbase-site.xml文件中:
<property>
<name>hbase.thrift.keytab.file</name>
<value>/etc/hbase/conf/hbase.keytab</value>
</property>
<property>
<name>hbase.thrift.kerberos.principal</name>
<value>$USER/_HOST@HADOOP.LOCALDOMAIN</value>
<!-- TODO: This may need to be HTTP/_HOST@<REALM> and _HOST may not work.
You may have to put the concrete full hostname.
-->
</property>
<!-- Add these if you need to configure a different DNS interface from the default -->
<property>
<name>hbase.thrift.dns.interface</name>
<value>default</value>
</property>
<property>
<name>hbase.thrift.dns.nameserver</name>
<value>default</value>
</property>
分別替換“$ USER”和“$ KEYTAB”的相應(yīng)憑證和密鑰表。
為了使用Thrift API主體與HBase進(jìn)行交互,還需要將hbase.thrift.kerberos.principal添加到該acl表中。例如,要賦予Thrift API主體,thrift_server,管理訪問權(quán)限(administrative access),可以使用如下的命令:
grant 'thrift_server', 'RWCA'
Thrift網(wǎng)關(guān)將使用提供的憑證向HBase進(jìn)行身份驗(yàn)證。Thrift網(wǎng)關(guān)本身不會(huì)執(zhí)行任何身份驗(yàn)證。所有通過Thrift網(wǎng)關(guān)訪問的客戶端都將使用Thrift網(wǎng)關(guān)的憑證并擁有其權(quán)限。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: