HBase, mail # user - Re: problem access security hbase - 2014-07-01, 17:13
 Search Hadoop and all its subprojects:

Switch to Threaded View
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

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB