hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Reed <br...@yahoo-inc.com>
Subject Re: problem connecting to zookeeper server
Date Thu, 20 May 2010 16:07:45 GMT
good catch lei! if this helps gregory, can you open a jira to throw an 
exception in this situation. we should be throwing an invalid argument 
exception or something in this case.

thanx
ben

On 05/20/2010 09:04 AM, Lei Zhang wrote:
> Seems you are passing in wrong arguments:
>
> Should have been:
>      public ZooKeeper(String connectString, int sessionTimeout, Watcher
> watcher)
>          throws IOException
>
> What you have in your client code is:
>
> On Thu, May 20, 2010 at 5:21 AM, Gregory Haskins
> <gregory.haskins@gmail.com>wrote:
>
>    
>>
>>     public App() throws Exception {
>>         zk = new ZooKeeper("192.168.1.124:2181", 0, this);
>>     }
>>
>>
>>      
> Try use a sensible timeout value such as 20000. The error you are getting
> means the server has timed out the session.
>
> Hope this unstucks you.
>    


Mime
View raw message