We are using zookeeper as a central repository for our data/configuration and here are few interesting options/utilities (docker/java versions) that one may need for browsing, copying, backing it up & migrating.
Browse –
docker run –name zkbrowser -d -p 4550:4550 mijalko/zkbrowser
docker stop zkbrowser
docker start zkbrowser
Copy data – https://github.com/ksprojects/zkcopy
- docker pull ksprojects/zkcopy
- docker run –rm -it ksprojects/zkcopy –source <source server:port>/test –target <dest server:port>/test
- Java vesion – needs maven
- brew install maven (on mac) or install it from https://maven.apache.org/install.html
- download code from above zkcopy url & build it using => mvn clean install
- java -jar target/zkcopy.jar –source <source server:port>/test –target <dest server:port>/test
Browse/backup – https://github.com/soabase/exhibitor (not tried but worth to try)
Migrate point in time data to new servers
- copy the last snapshot/log file from source cluster to all zk nodes in the new cluster and restart the cluster.