Benjamin Reed updated ZOOKEEPER-496:
Status: Open (was: Patch Available)
this looks pretty cool anirban, unfortunately i cannot get it to compile: in
one of the .h files you have a qualified member, which should not be qualified;
you need to include string.h when you use memset; and the resulting makefile
does not include zookeeper.so as a required library. the readme should also
list libboost as a required library. this is minor, but could you also change
the tabs to 4 spaces?
i also notice that you use strings for values. what will happen in the values
> zookeeper-tree utility for export, import and incremental updates
> Key: ZOOKEEPER-496
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-496
> Project: Zookeeper
> Issue Type: New Feature
> Components: contrib
> Environment: RHEL 4.6, libxml2
> Reporter: Anirban Roy
> Assignee: Anirban Roy
> Fix For: 3.3.0
> Attachments: zktreeutil.patch
> Original Estimate: 168h
> Remaining Estimate: 168h
> zktreeutil - Zookeeper Tree Data Utility
> Author: Anirban Roy
> Organization: Yahoo Inc.
> zktreeutil program is intended to manage and manipulate zk-tree data quickly,
> ciently and with ease. The utility operates on free-form ZK-tree and hence
> can be used
> for any cluster managed by Zookeeper. Here are the basic functionalities -
> EXPORT: The whole/partial ZK-tree is exported into a XML file. This helps in
> capturing a current snapshot of the data for backup/analysis. For a subtree
> export, one need to specify the path to the ZK-subtree with proper option.
> IMPORT: The ZK-tree can be imported from XML into ZK cluster. This helps in
> the new ZK cluster with static configuration. The import can be non-intrusive
> making only the additions in the existing data. The import of subtree is also
> possible by optionally providing the path to the ZK-subtree.
> DIFF: Creates a diff between live ZK data vs data saved in XML file. Diff can
> some ZK-tree branches (possibly dynamic data) on reading the optional ignore
> from XML file. Diffing on a ZK-subtree achieved by providing path to
> ZK-subtree with
> diff command.
> UPDATE: Make the incremental changes into the live ZK-tree from saved XML,
> lly after running the diff.
> DUMP: Dumps the ZK-tree on the standard output device reading either from
> live ZK
> server or XML file. Like export, ZK-subtree can be dumped with optionaly
> providing the path to the ZK-subtree, and till a certain depth of the
> The exported ZK data into XML file can be shortened by only keeping the
> static ZK
> nodes which are required to prime a cluster. The dynamic zk nodes (created
> fly) can be ignored by setting a 'ignore' attribute at the root node of the
> subtree (see tests/zk_sample.xml), possibly deleting all inner ZK nodes under
> Once ignored, the whole subtree is ignored during DIFF, UPDATE and WRITE.
This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.