09-26-2017 11:34 PM
Kafka Access Inside HBase Co-processor code in Kerberoized Cluster
Cloudera : 5.11.1
We are facing an issue for creating the Kafka producer instance inside the HBase coprocessor code inside a Kerberozied cluster. Inside the code we already configure “java.security.auth.login.config” property using System.property. We observed that by default in hbase-env.sh having path /etc/hbase/conf have value export HBASE_OPTS="$HBASE_OPTS -Djava.security.auth.login.config=/etc/hbase/conf/jaas.conf" which is pointing to hbase jaas.conf.
To confirm about the file permission we tried to read the jaas.conf file from /etc/ path and it is working fine.
We are getting “Jaas configuration not found” exception during the execution.
Below are the options we tried.
export HBASE_OPTS="$HBASE_OPTS -Djava.security.auth.login.config=/etc/jaas.conf -Djava.security.krb5.conf=/etc/krb5.conf"
and deployed the client configuration.
We checked the default value of property “java.security.auth.login.config” using System.getProperty, the value given as /var/run/cloudera-scm-agent/process/<<hbase process>
Could anyone help on this?