From: Mahadev K. <ma...@ya...> - 2008-04-23 01:48:29
|
Ted is right. The address can be a comma separated list of host:port. Regards Mahadev > -----Original Message----- > From: zoo...@li... [mailto:zookeeper-user- > bo...@li...] On Behalf Of Ted Dunning > Sent: Tuesday, April 22, 2008 5:27 PM > To: Stefan Groschupf; zoo...@li... > Subject: Re: [Zookeeper-user] which zookeeper server should be used? > > > That is how you open a client connection. > > The server you start with a command line such as: > > java -jar zookeeper-0.1.jar zoo.cfg > > The contents of zoo.cfg describe your server cluster configuration and is > documented on the wiki. For my dev environment, I literally have a 3 line > configuration. > > I believe the address part of the Zookeeper call should be a comma > separated > list of servers. The client library will handle the decision about which > server to use. Again, this is described on the wiki. > > > On 4/22/08 5:19 PM, "Stefan Groschupf" <sg...@10...> wrote: > > > Hi, > > thanks again helping getting me started so super fast. > > Just another question: > > The doc shows to start a a zk like this: > > zk = new ZooKeeper(address, 3000, this); > > > > In case I have a couple zookeeper servers which address I should I use? > > Try all until I found a working one? > > Does this matter? Should all slaves use the same one, round robbing > > pick one? > > > > Thanks. > > Stefan > > > > > > > > ------------------------------------------------------------------------ > - > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j av > aone > > _______________________________________________ > > Zookeeper-user mailing list > > Zoo...@li... > > https://lists.sourceforge.net/lists/listinfo/zookeeper-user > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j av > aone > _______________________________________________ > Zookeeper-user mailing list > Zoo...@li... > https://lists.sourceforge.net/lists/listinfo/zookeeper-user |