Skip to content

alanthssss/zktool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zktool

A CLI tool to export, import, and update Zookeeper nodes under /config/product.

Build

bash build.sh

Builds binaries for linux/amd64, windows/amd64, darwin/amd64, and darwin/arm64 into the build/ directory.

Export

Export Zookeeper data to a JSON file.

export SOURCE_ZK=1.92.157.216:2181
export EXPORT_FILE=zookeeper_export.json
./zktool export

Import

Import Zookeeper data from a previously exported JSON file.

export TARGET_ZK=localhost:3000
export IMPORT_FILE=zookeeper_export.json
./zktool import

Update

Update Zookeeper nodes from an Excel (.xlsx) or JSON (.json) file.

Using Excel:

export TARGET_ZK=localhost:3000
export UPDATE_FILE=./zk.xlsx
./zktool update

Using JSON:

export TARGET_ZK=localhost:3000
export UPDATE_FILE=./zk_temp_data.json
./zktool update

About

export\import\update zookeeper data tool built by golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors