Currently, I have zknodes with ACL property world:anyone:crdwa. With new requirement, I need to update ACL to use auth scheme. For that, I need to update all current zknodes with auth scheme ACL too. I am planning to write a python script and do DFS traversal doing so. I want to reach out to learn, if there is an open source library or better way to achieve the same?
标签:
apache-zookeeper
相关问题
- How does Zookeeper manage node roles in other clus
- How change topic leader or remove partition after
- What's the benefit of advanced master election
- Kafka inaccessible once inside Kubernetes/Minikube
- Adding new ZooKeeper node in Kafka cluster?
相关文章
- How to access a protected znode from ZooKeeper usi
- How to monitor application processing of Kafka mes
- How do i enable remote jmx with port in zookeeper
- kafka cant connect to zookeeper- FATAL Fatal error
- Connecting and Persisting to HBase
- Best way to start zookeeper server from java progr
- Is there a way to add watcher queue in zookeeper?
- Killing node with __consumer_offsets leads to no m
Scripting the traversal in Python (or any language of choice) is a viable solution.
Current releases of Apache ZooKeeper at the time of this writing do not provide any built-in capabilities for recursive traversal of the znode hierarchy. Apache JIRA Issue ZOOKEEPER-1962 tracks development of a zkCli
ls -R
command capable of doing a recursive listing. This is scheduled to ship in Apache ZooKeeper 3.5.3. If you wanted a solution in Java, you could adapt the code from that patch or even apply the patch and make your own custom ZooKeeper build so that you can use the new zkCli feature.I recommend reading the discussion on that JIRA and the patch even if you decide to write your own implementation. Before we committed the patch, there was some discussion of a few edge cases that are worth considering.