A CLI tool to export, import, and update Zookeeper nodes under /config/product.
bash build.shBuilds binaries for linux/amd64, windows/amd64, darwin/amd64, and darwin/arm64 into the build/ directory.
Export Zookeeper data to a JSON file.
export SOURCE_ZK=1.92.157.216:2181
export EXPORT_FILE=zookeeper_export.json
./zktool exportImport Zookeeper data from a previously exported JSON file.
export TARGET_ZK=localhost:3000
export IMPORT_FILE=zookeeper_export.json
./zktool importUpdate Zookeeper nodes from an Excel (.xlsx) or JSON (.json) file.
Using Excel:
export TARGET_ZK=localhost:3000
export UPDATE_FILE=./zk.xlsx
./zktool updateUsing JSON:
export TARGET_ZK=localhost:3000
export UPDATE_FILE=./zk_temp_data.json
./zktool update