hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@yahoo-inc.com>
Subject Re: Restarting a single zookeeper Server on the same port within the process
Date Fri, 23 Oct 2009 00:29:29 GMT
Hi Siddharth,
  Usually the time of releasing the port is dependent on the OS. So you can
try sleeping a few more seconds to see if the port has been released or it
.. Or just poll on the port to see if its in use or not.... There isnt an
easier way to restart on the same port.


mahadev


On 10/22/09 4:52 PM, "Siddharth Raghavan" <SIDDHARTHR@audiencescience.com>
wrote:

> Hello,
> 
>  
> 
> I need to restart a single zookeeper server node on the same port within
> my unit tests. 
> 
>  
> 
> I tried stopping the server, having a delay and restarting it on the
> same port. But the server doesn't startup. When I re-start on a
> different port, it starts up correctly.
> 
>  
> 
> Can you let me know how I can make this one work.
> 
>  
> 
> Thank you. 
> 
>  
> 
> Regards,
> 
> Siddharth
> 
>  
> 


Mime
View raw message