Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> fail connect to zookeeper


Copy link to this message
-
Re: fail connect to zookeeper
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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB