Skip to main content
Priyanka26
Silver ⭐️⭐️
January 11, 2022
Question

Unable to delete hbase znode from zookeeper CLI in a kerberized cluster : Authentication is not valid : /hbase-secure/replication

Hi Everyone,

 

I need to delete hbase znode from zokkeeper CLI but getting follwing error when I try that:

[zk: localhost:2181(CONNECTED) 1] rmr /hbase-secure

Authentication is not valid : /hbase-secure/replication

[zk: localhost:2181(CONNECTED) 2]

 

This is the ACL set:

[zk: localhost:2181(CONNECTED) 11] getAcl /hbase-secure

'world,'anyone

: r

'sasl,'hbase

: cdrwa

 

I have even tried to set the ACL as follows but it didn't help either:

[zk: localhost:2181(CONNECTED) 7] setAcl /hbase-secure world:anyone:cdrwa

Authentication is not valid : /hbase-secure

[zk: localhost:2181(CONNECTED) 8] rmr /hbase-secure

Authentication is not valid : /hbase-secure/replication

 

The Cluster is kerberized, what am I missing here? Appreciate all the help!

 

2 replies

dcastillo
Silver ⭐️⭐️
January 12, 2022

When we encounter Authentication is not valid error might be because the user which us trying to delete/modify the ZKnode does not have permissions to do it, please export the JVMFLAG pointing to the jaas file of Hbase {1}

For example in this case I understand we are trying to delete the hbase-secure zknode

So go to the latest hbase process dir, export the hbase jaas file and then log in into ZKCLI again and run the rmr/deleteall command to delete the ZKnode

{1} - export JVMFLAGS=“-Djava.security.auth.login.config=path/to/jaas.conf”

Translate
DianaTorres
Community Manager
Community Manager
January 18, 2022

@Priyanka26 Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!

Translate
Regards, Diana Torres, Senior Community Moderator