zkcopy
Tool for fast copying ZooKeeper data between different clusters. Originally it was developed for copying big volumes of configuration over WAN.
Build
Requires apache maven 3.
mvn clean install
Usage
java -jar target/zkcopy.jar --source server:port/path --target server:port/path
With docker, use following commands:
docker pull ksprojects/zkcopy
docker run --rm -it ksprojects/zkcopy --source server:port/path --target server:port/path
Options
-c,--copyOnly <true|false> (optional) set this flag if you
do not want to remove nodes that
are removed on source
-h,--help print this message
-i,--ignoreEphemeralNodes <true|false> (optional) set this flag if you
do not want to copy ephemeral
ZNodes
-s,--source <server:port/path> location of a source tree to
copy
-t,--target <server:port/path> target location
-w,--workers <N> (optional) number of concurrent
workers to copy data