zkTreeUtil
zkTreeUtil copied to clipboard
ZooKeeper dump utility
No longer supported.
========================================== zkTreeUtil - ZooKeeper Tree Utility Author: Dobrunov Aleksey (ctapmex) Homepage: https://github.com/ctapmex/zkTreeUtil
(translated by https://translate.google.ru)
zkTreeUtil application for data/tree stored in ZooKeeper. The current main task - to export the contents of ZooKeeper.
usage: zkTreeUtil -e,--export exports the zookeeper tree -od,--output-dir
Export is available in three formats: - The file structure (output-dir) As specified for the output directory is created for each node or folder or file. Repeating the tree structure. If the node is set (value), it is stored in a file. For nodes/folders the value stored in folders file '_znode'. The main limitation of this format - file redundant system does not support all characters in the name. For example ':'. - A flat file (output-file) In the set of output files created by the string of the form path=/ss val=dd type='ephemeral' path - the path node. val - the value, if specified type - the type of node. ephemeral - temporary node. - Xml file In the set of output files created nodes (znode), keeping all attribute information
To be able to export a certain subtree ZooKeeper, is the key 'p'. The parameter 'z' is address of the server supports specifying multiple servers ZooKeeper cluster, separated by commas. For example, 127.0.0.1:3000,127.0.0.1:3001
examples:
zktreeutil -z 127.0.0.1:2181 --export -xf d:\test.xml -p /ss zktreeutil -z 127.0.0.1:2181 --export -od d:\test
Build instructions
- cd into this directory
- mvn clean package
- 'zkTreeUtil' created in target\distrib directory