How do I get added child znode?

2010-02-16 Thread neptune
Hi all, I'm kimhj. I have a question. I registered a Watcher on a parent znode("/foo"). I create child znode("/foo/bar1") using a zookeeper console. Test program received Children changed event. But there is no API getting added znode. ZooKeeper.getChildren() method returns all children in a paren

Re: How do I get added child znode?

2010-02-16 Thread Mahadev Konar
Hi Kim, The zookeeper api does not provide an api to get the znode that was added or deleted. You will have to compare the last set of children and new set of children to see which one was added or deleted. Thanks mahadev On 2/16/10 5:47 AM, "neptune" wrote: > Hi all, I'm kimhj. > > I have

Re: How do I get added child znode?

2010-02-16 Thread Patrick Hunt
neptune wrote: I have a question. I registered a Watcher on a parent znode("/foo"). I create child znode("/foo/bar1") using a zookeeper console. Test program received Children changed event. But there is no API getting added znode. ZooKeeper.getChildren() method returns all children in a parent n

ZooKeeper packages for Ubuntu

2010-02-16 Thread Gustavo Niemeyer
Hello everyone, Thanks to Matthias Klose and Thierry Carrez, we've got ZooKeeper packaged for Ubuntu: https://launchpad.net/~ttx/+archive/ppa This is a Personal Package Archive at the moment, but these packages may end up being promoted depending on how relevant they are. Please let me know

Re: ZooKeeper packages for Ubuntu

2010-02-16 Thread Mahadev Konar
Great to hear this mahadev On 2/16/10 11:55 AM, "Gustavo Niemeyer" wrote: > Hello everyone, > > Thanks to Matthias Klose and Thierry Carrez, we've got ZooKeeper > packaged for Ubuntu: > > https://launchpad.net/~ttx/+archive/ppa > > This is a Personal Package Archive at the moment, b

Re: ZooKeeper packages for Ubuntu

2010-02-16 Thread Thomas Koch
> Hello everyone, > > Thanks to Matthias Klose and Thierry Carrez, we've got ZooKeeper > packaged for Ubuntu: Actually, the package is in Debian and Ubuntu copied it from there: http://packages.debian.org/sid/zookeeper But thanks to Matthias for helping me with the python binding. Thomas Koch, h

Re: ZooKeeper packages for Ubuntu

2010-02-16 Thread Ted Dunning
Fantastic. Getting ZK into the ubuntu package system is *very* helpful. On Tue, Feb 16, 2010 at 11:55 AM, Gustavo Niemeyer wrote: > Hello everyone, > > Thanks to Matthias Klose and Thierry Carrez, we've got ZooKeeper > packaged for Ubuntu: > > > https://launchpad.net/~ttx/+archive/ppa

Re: ZooKeeper packages for Ubuntu

2010-02-16 Thread Gustavo Niemeyer
> Actually, the package is in Debian and Ubuntu copied it from there: > http://packages.debian.org/sid/zookeeper > > But thanks to Matthias for helping me with the python binding. > > Thomas Koch, http://www.koch.ro Oh, I'm really sorry about this. I didn't know the package was based on something