Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HBASE replication add_peer giving NoAuth error Kerberized clusters with same realm two different service ids

avatar
Rising Star

hbase(main):002:0> add_peer '1',"zknode1,zknode2,zknode3:2181/hbase-secure"

ERROR: KeeperErrorCode = NoAuth for /hbase-secure/replication/peers

Here is some help for this command: A peer can either be another HBase cluster or a custom replication endpoint. In either case an id must be specified to identify the peer.

Background:

hbase(Dev Cluster) with service id dev-hbase --> hbase(QA Cluster) with service id qa-hbase.

1 ACCEPTED SOLUTION

avatar
Guru

You are probably running into https://issues.apache.org/jira/browse/HBASE-1514.

In secure clusters, you should run the zkcli command with --auth-as-server parameter. Like this:

hbase --auth-as-server zkcli 

In newer versions of HDP, the patch should be there. Otherwise, you can get this working with something like:

HBASE_OPTS="$HBASE_OPTS -Djava.security.auth.login.config=/usr/hdp/current/hbase-regionserver/conf/hbase_master_jaas.conf hbase zkcli 

Please note that the jaas.conf file that you add to the HBASE_OPTS before running the zkcli command should match what you have for your master and regionservers.

View solution in original post

2 REPLIES 2

avatar
Guru

You are probably running into https://issues.apache.org/jira/browse/HBASE-1514.

In secure clusters, you should run the zkcli command with --auth-as-server parameter. Like this:

hbase --auth-as-server zkcli 

In newer versions of HDP, the patch should be there. Otherwise, you can get this working with something like:

HBASE_OPTS="$HBASE_OPTS -Djava.security.auth.login.config=/usr/hdp/current/hbase-regionserver/conf/hbase_master_jaas.conf hbase zkcli 

Please note that the jaas.conf file that you add to the HBASE_OPTS before running the zkcli command should match what you have for your master and regionservers.

avatar
Rising Star