Created 01-11-2022 02:58 PM
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!
Created 01-11-2022 06:03 PM
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”
Created 01-18-2022 10:45 AM
@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!
Regards,
Diana Torres,