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: about 3 hours 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-09T17:58:25.000Z (about 1 year ago)
- Last Synced: 2024-06-24T16:27:44.129Z (5 months ago)
- Topics: java, zookeeper
- Language: Java
- Homepage:
- Size: 1.37 MB
- Stars: 236
- Watchers: 13
- Forks: 92
- Open Issues: 4
-
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
```