Created on 02-09-2017 09:55 AM - edited 09-16-2022 01:38 AM
Problem
There are time we would want to remove a ZK node in a secure cluster which is ACL protected. Something as below ACLs
[zk: xyz.com:2181(CONNECTED) 0] getAcl /infra-solr 'sasl,'infra-solr : cdrwa 'world,'anyone : r [zk: xyz.com:2181(CONNECTED) 0] rmr /test Authentication is not valid : /test
Here only read privilege is available to rest.
Soln
java -cp "./zookeeper.jar:lib/slf4j-api-1.6.1.jar" org.apache.zookeeper.server.auth.DigestAuthenticationProvider super:password SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. super:password->super:DyNYQEQvajljsxlhf5uS4PJ9R28=
export SERVER_JVMFLAGS="$SERVER_JVMFLAGS -Dzookeeper.DigestAuthenticationProvider.superDigest=super:DyNYQEQvajljsxlhf5uS4PJ9R28="
addauth digest super:password
Note
Please be careful while running these on production systems.
Created on 12-12-2017 07:41 AM
It helped. Thanks !
Created on 12-22-2017 11:08 AM
Thanks. This is very useful
Created on 01-05-2018 03:06 AM
thanks a lot
Created on 01-05-2018 03:09 AM
Nice article. Very much needed.