Thanks Ben, that's exactly what I was looking for.
On Tue, Sep 13, 2011 at 4:43 PM, Benjamin Reed <[EMAIL PROTECTED]> wrote:
> you can do this using the logs. there is a log format utility:
> LogFormatter that will print the log in a human readable format that
> you could use to get this information. (actually you might need to
> enhance the tool a bit depending on the detail that you want.)
> On Tue, Sep 13, 2011 at 3:53 PM, kishore g <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I want to dump all changes that happen on ZK to a file.
> > What I am trying to do is following
> > - Set up some application specific structure on zookeeper.
> > - Start a listener or something equivalent that watches on all the
> > - Multiple processes are connected to Zookeeper and they make some
> > changes on the ZK as needed
> > - The listener will detect the changes and dump the changes to a file
> > some structure
> > - Once the run is over there will be a verification tool which will go
> > over the change log and do some verifications.
> > I am not sure if there is already a tool to do this or if it is possible
> > get all changes from ZK server logs.
> > I am aware that if we have a separate listener we may not be able to get
> > changes since I might miss changes between receiving a notification and a
> > change happening before i reset the watch. This may not be the case with
> > logs/snapshot.
> > This will not be in production but I want to use it to for testing. Idea
> > to decouple verification from simulation so that all types of
> > can be done based on the change log.
> > Any pointers/suggestions ?
> > thanks,
> > Kishore G