- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Unable to delete hbase znode from zookeeper CLI in a kerberized cluster : Authentication is not valid : /hbase-secure/replication
- Labels:
-
Apache HBase
Created 01-11-2022 02:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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,Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
