|
|
-
Hbase- Java client- Put Method with Kerberos authenticationFarrokh Shahriari 2012-10-16, 09:07
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 |