Tool for fast copying ZooKeeper data between different clusters. Optimized for copying big volumes of data over WAN.
Requires apache maven 3.
$ mvn clean install
java -jar target/zkcopy-*-jar-with-dependencies.jar
-Dsource="server:port/path"
-Ddestination="server:port/path"
-Dthreads=10
-DremoveDeprecatedNodes=true
source
- set source cluster address and root node to be copieddestination
- set target cluster address and root node location where to copy datathreads
- specify number of parallel workers. If latency is high, then increasing this number might significantly improve performanceDremoveDeprecatedNodes
- set it totrue
to remove nodes that are present ontarget
but missing onsource