I mean after u get the pid with netstat command ex: 14999 , then kill that
process with command kill -9 14999 . after that u can try to start
zookeeper again
On Oct 24, 2015 9:34 PM, "researcher cs" <[email protected]> wrote:

> Thanks for replying , but the last command kill -9 what ?
>
> On Sat, Oct 24, 2015 at 4:08 PM, Youzha <[email protected]> wrote:
>
>> Maybe u can try this command.
>>
>> Netstat -netulp | grep 2181
>>
>> Then check the pid and kill with kill -9 pid.
>> Cmiiw
>> On Oct 24, 2015 8:53 PM, "researcher cs" <[email protected]>
>> wrote:
>>
>>> I'm new to zookeeper and tried to start server by using
>>>
>>> ./zkServer.sh start
>>>
>>> but got this
>>>
>>> binding to port 0.0.0.0/0.0.0.0:2181 2015-10-23 22:08:09,952 - FATAL
>>> [main:ZooKeeperServerMain@62] - Unexpected exception, exiting abnormally
>>> java.net.BindException: Address already in use
>>>
>>> is there any port which i can use it ?
>>>
>>> or is there any solution to solve this problem ?
>>>
>>> i tried to kill process in the port 2181 by using this
>>>
>>> sudo fuser -k 2181/tcp
>>>
>>> but problem is still
>>>
>>> my zoo.cfg is
>>>
>>> tickTime=2000
>>> initLimit=10
>>> syncLimit=5
>>> dataDir=/var/zookeeper
>>> clientPort=2181
>>>
>>>
>

Reply via email to