Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```