Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ksprojects/zkcopy
ZooKeeper copy utililty
https://github.com/ksprojects/zkcopy
java zookeeper
Last synced: 6 days ago
JSON representation
ZooKeeper copy utililty
- Host: GitHub
- URL: https://github.com/ksprojects/zkcopy
- Owner: ksprojects
- License: apache-2.0
- Created: 2015-03-14T22:32:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T11:04:33.000Z (4 months ago)
- Last Synced: 2024-12-09T04:12:21.859Z (13 days ago)
- Topics: java, zookeeper
- Language: Java
- Homepage:
- Size: 1.37 MB
- Stars: 242
- Watchers: 13
- Forks: 96
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://maven.apache.org/).
```bash
mvn clean install
```## Usage
```bash
java -jar target/zkcopy.jar --source server:port/path --target server:port/path
```With [docker](https://hub.docker.com/r/ksprojects/zkcopy/), use following commands:
```bash
docker pull ksprojects/zkcopy
docker run --rm -it ksprojects/zkcopy --source server:port/path --target server:port/path
```## Options
```
Usage: zkcopy [-ci] [--help] [--timeout=] [-b=]
[-m=] -s=server:port/path -t=server:port/path
[-w=]
--help display this help and exit
--timeout=
Session timeout in milliseconds
Default: 40000
-b, --batchSize= Batch write operations into transactions of this
many operations. Batch sizes are limited by the
jute.maxbuffer server-side config, usually
around 1 MB.
Default: 1000
-c, --copyOnly[=] set this flag if you do not want to remove nodes
that are removed on source
-i, --ignoreEphemeralNodes[=]
set this flag to false if you do not want to copy
ephemeral ZNodes
-m, --mtime= Ignore nodes older than mtime
Default: -1
-s, --source=server:port/path
location of a source tree to copy-t, --target=server:port/path
target location-w, --workers= number of concurrent workers to copy data
Default: 100
```