zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@apache.org>
Subject Re: Question about client connection
Date Fri, 13 May 2011 16:54:47 GMT
  The zookeeper client automatiically connect to some other zk server
once  it detects the server its connecting to is down. For this
though, you have to provide it with the whole list of ZK ensemble,
hostlist = "host1:port,host2:port,host3:port"

Are you using the list or just a single host port name?


On Fri, May 13, 2011 at 9:10 AM, Jeremy Sevellec
<jeremy.sevellec@sarbacane.com> wrote:
> Hi Everyone,
> I'm new to Zookeeper and I'm trying to use it to make some distributed
> lock. Globally, It works perfect!
> I've got a question about zookeeper client connection to a dead
> zookeeper server .
> When I'm doing this connec to to a dead zookeeper server like this (the
> code works fine when the server is up) :
> zooKeeper = new ZooKeeper(....).
> The zookeeper client failed to connect but loop infinitely to try to
> connect again and again. Is there any solution to know [catch] that it's
> impossible to connect to a zookeeper server to be abble to make
> something?
> Regards,
> Jérémy


View raw message