You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Ohad Ben Porat <oh...@outbrain.com> on 2009/11/23 17:28:59 UTC
Using ZooKeeper for Configuration Managment
Hey
I am a newbie to ZooKeeper and be happy if someone could link me to a good example how ZooKeeper can be used for configuration management?
Thanks.
Re: Using ZooKeeper for Configuration Managment
Posted by Patrick Hunt <ph...@apache.org>.
Config management and group membership are two of the simplest use cases
for ZK, we don't have a "recipe" here as it's pretty basic (not that we
couldn't/shouldn't)
The java example in our docs is pretty close, it sets a watch on a node
and monitors for changes. This is the typical pattern for CM.
http://hadoop.apache.org/zookeeper/docs/current/javaExample.html
Also:
Tom White's excellent book on Hadoop does a great job covering ZooKeeper
in chapter 13, it's available on safaribooks or for purchase if that
works for you:
http://www.hadoopbook.com/
http://github.com/tomwhite/hadoop-book/tree/master/src/main/ch13/java/
Patrick
Ohad Ben Porat wrote:
> Hey
>
>
>
> I am a newbie to ZooKeeper and be happy if someone could link me to a
> good example how ZooKeeper can be used for configuration management?
>
>
>
> Thanks.
>
>