Home | About | Sematext search-lucene.com search-hadoop.com
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
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> Hbase- Java client- Put Method with Kerberos authentication


Copy link to this message
-
Hbase- Java client- Put Method with Kerberos authentication
How should I code java method ( put method) to authenticate with kerberos &
doing insert operation ? Are these configurations necessary or not :

Configuration conf = HBaseConfiguration.create();
 conf.set(HBASE_CONFIGURATION_ZOOKEEPER_QUORUM, hbaseZookeeperQuorum);
 conf.set(HBASE_CONFIGURATION_ZOOKEEPER_CLIENTPORT,
hbaseZookeeperClientPort);
 conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION,
"kerberos");
 conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION,
"true");
 UserGroupInformation.loginUserFromKeytab("hbase/[EMAIL PROTECTED]
","/etc/hbase/conf/hbase.keytab");

With these configuration,still it doesn't work for me.
I'll be glad if someone can help me with good example.

Tnx
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