Support Questions

Find answers, ask questions, and share your expertise

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.