Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> problem access security hbase


Copy link to this message
-
Re: problem access security hbase
Hi Cheney,

Try this:
Configuration hbaseConf = HBaseConfiguration.create(
hadoopConf);
hbaseConf.set("hbase.zookeeper.quorum","slave-nodex");
hbaseConf.set("hbase.zookeeper.property.clientPort", "2181");
hbaseConf.set("hbase.rpc.engine",
"org.apache.hadoop.hbase.ipc.SecureRpcEngine");
hbaseConf.set("hbase.security.authentication", "kerberos");
hbaseConf.set("hbase.master.
kerberos.principal", "hbase/[EMAIL PROTECTED]
<[EMAIL PROTECTED]>");
hbaseConf.set("hbase.master.keytab.file","/etc/hbase/conf/hbase.keytab");
hbaseConf.set("hbase.regionserver.kerberos.principal", "hbase/_
[EMAIL PROTECTED] <[EMAIL PROTECTED]>");
// added code below..

*UserGroupInformation.setConfiguration(hbaseConf); User.login(**hbaseConf,
"hbase.master.keytab.file", "hbase.regionserver.kerberos.principal", null);*
Thanks,
Anil Gupta
On Tue, Jul 1, 2014 at 8:44 AM, Cheney Sun <[EMAIL PROTECTED]> wrote:
Thanks & Regards,
Anil Gupta