You've specified the same server twice in that list -- zk01:2181 and zk01:2181 again.
But to answer your question, yes, ZK C code will try all the servers in the provided list while connecting. On Tue, May 22, 2012 at 10:07 PM, Yosef Arraf <[email protected]> wrote: > Hi, > I'm faceing a problem when i'm working with cluster zookeper and one of > the cluser servers is down: > when *zk01:2181 *is down the following code will fail: > > String servers = "*zk01:2181*,*zk01:2181*"; > _zkclient = new ZkClient(servers, 4000, connectionTimeout, new > BytesPushThroughSerializer()); > > it is not as mention > "If establishment of the connection fails, another server in the connect > string will be tried" > > > please help me to find out how to start ZkClient when one of the zk servers > is down > > Thanks, > Yosef >
