Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

zookeeper - unify two zookeepers that are in the same cluster

avatar
Expert Contributor

hi community cloudera,

i have a cluster with two Zookeepers.

1. Zookeeper is used by all services in the cluster.

2. Zookeeper-kfk is used by the Kafka service.

however, for Ranger to manage permissions in Kafka, Kafka needs to use the same Zookeeper that Ranger uses.

therefore, I need to merge the two Zookeepers. I've tried using zkcopy.py, but I always get the error "ERROR: Source path "/var/lib/zookeeper" does not exist.", but the directory exists in the source.

ls -l /var/lib/zookeeper

total 8
-rw-r--r-- 1 zookeeper zookeeper 2 Oct 8 11:24 myid
drwxr-xr-x 2 zookeeper zookeeper 4096 Oct 8 11:25 version-2

cloudera's official support doesn't have a procedure for this issue. Therefore, I'd like to know if anyone has managed to run zkcopy.py with success or used another method to merge two Zookeepers in the same cluster?

1 REPLY 1

avatar
Expert Contributor

i used this github as an example:

https://github.com/kerberizer/zkcopy

but, without success, it returns the error that was described.