zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall McMullen <marshall.mcmul...@gmail.com>
Subject Re: fail connect to zookeeper
Date Wed, 23 May 2012 04:09:34 GMT
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 <yosef.arraf@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message