i completed connection , but after some times found this

2015-10-24 18:14:39,614 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket
connection from /127.0.0.1:40261 2015-10-24 18:14:39,818 - INFO
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client
attempting to establish new session at /127.0.0.1:40261 2015-10-24
18:14:40,223 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session
0x1509a7b268c0001 with negotiated timeout 20000 for client /127.0.0.1:40261
2015-10-24 18:14:40,936 - INFO [ProcessThread:-1:PrepRequestProcessor@387]
- Processed session termination for sessionid: 0x1509a7b268c0001 2015-10-24
18:14:41,048 - WARN [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@634] - EndOfStreamException: Unable to
read additional data from client sessionid 0x1509a7b268c0001, likely client
has closed socket 2015-10-24 18:14:41,075 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1435] - Closed socket connection for
client /127.0.0.1:40261 which had sessionid 0x1509a7b268c0001 2015-10-24
18:14:41,116 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket
connection from /127.0.0.1:40262 2015-10-24 18:14:41,149 - INFO
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client
attempting to establish new session at /127.0.0.1:40262 2015-10-24
18:14:41,152 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session
0x1509a7b268c0002 with negotiated timeout 20000 for client /127.0.0.1:40262
2015-10-24 18:14:50,511 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket
connection from /127.0.0.1:40264 2015-10-24 18:14:50,534 - INFO
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client
attempting to establish new session at /127.0.0.1:40264 2015-10-24
18:14:50,550 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session
0x1509a7b268c0003 with negotiated timeout 20000 for client /127.0.0.1:40264
2015-10-24 18:14:50,580 - INFO [ProcessThread:-1:PrepRequestProcessor@387]
- Processed session termination for sessionid: 0x1509a7b268c0003 2015-10-24
18:14:50,601 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1435] - Closed socket connection for
client /127.0.0.1:40264 which had sessionid 0x1509a7b268c0003 2015-10-24
18:14:50,621 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket
connection from /127.0.0.1:40265 2015-10-24 18:14:50,638 - INFO
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client
attempting to establish new session at /127.0.0.1:40265 2015-10-24
18:14:50,680 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session
0x1509a7b268c0004 with negotiated timeout 20000 for client /127.0.0.1:40265
2015-10-24 18:16:02,311 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket
connection from /127.0.0.1:40280 2015-10-24 18:16:02,352 - INFO
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client
attempting to establish new session at /127.0.0.1:40280 2015-10-24
18:16:02,355 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session
0x1509a7b268c0005 with negotiated timeout 20000 for client /127.0.0.1:40280
2015-10-24 18:16:02,379 - INFO [ProcessThread:-1:PrepRequestProcessor@387]
- Processed session termination for sessionid: 0x1509a7b268c0005 2015-10-24
18:16:02,396 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1435] - Closed socket connection for
client /127.0.0.1:40280 which had sessionid 0x1509a7b268c0005 2015-10-24
18:16:02,443 - INFO [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn$Factory@251] - Accepted socket
connection from /127.0.0.1:40281 2015-10-24 18:16:02,464 - INFO
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@777] - Client
attempting to establish new session at /127.0.0.1:40281 2015-10-24
18:16:02,467 - INFO [SyncThread:0:NIOServerCnxn@1580] - Established session
0x1509a7b268c0006 with negotiated timeout 20000 for client /127.0.0.1:40281


On Sat, Oct 24, 2015 at 5:55 PM, researcher cs <[email protected]>
wrote:

> Thanks , i didn't try zkCli.sh because it's not like the old which i used
> it ,
> why the cursor still hang ! and why this exception appeared ?
>
> On Sat, Oct 24, 2015 at 5:41 PM, Youzha <[email protected]> wrote:
>
>> I think your zookeeper already started normally
>> On Oct 24, 2015 10:35 PM, "researcher cs" <[email protected]>
>> wrote:
>>
>>> this what i got exactly
>>>
>>> JMX enabled by default Using config:
>>> /home/st/zookeeper-3.3.3/bin/../conf/zoo.cfg Starting zookeeper ... STARTED
>>> st@ubuntu:~/zookeeper-3.3.3/bin$ 2015-10-24 17:32:53,275 - INFO
>>> [main:QuorumPeerConfig@90] - Reading configuration from:
>>> /home/st/zookeeper-3.3.3/bin/../conf/zoo.cfg 2015-10-24 17:32:53,278 - WARN
>>> [main:QuorumPeerMain@105] - Either no config or no quorum defined in
>>> config, running in standalone mode 2015-10-24 17:32:53,315 - INFO
>>> [main:QuorumPeerConfig@90] - Reading configuration from:
>>> /home/st/zookeeper-3.3.3/bin/../conf/zoo.cfg 2015-10-24 17:32:53,316 - INFO
>>> [main:ZooKeeperServerMain@94] - Starting server 2015-10-24 17:32:53,333
>>> - INFO [main:Environment@97] - Server
>>> environment:zookeeper.version=3.3.3-1073969, built on 02/23/2011 22:27 GMT
>>> 2015-10-24 17:32:53,334 - INFO [main:Environment@97] - Server
>>> environment:host.name=ubuntu 2015-10-24 17:32:53,336 - INFO
>>> [main:Environment@97] - Server environment:java.version=1.6.0_38
>>> 2015-10-24 17:32:53,337 - INFO [main:Environment@97] - Server
>>> environment:java.vendor=Sun Microsystems Inc. 2015-10-24 17:32:53,341 -
>>> INFO [main:Environment@97] - Server
>>> environment:java.home=/usr/lib/jvm/jre1.6.0_38 2015-10-24 17:32:53,341 -
>>> INFO [main:Environment@97] - Server
>>> environment:java.class.path=/home/st/zookeeper-3.3.3/bin/../build/classes:/home/st/zookeeper-3.3.3/bin/../build/lib/*.jar:/home/st/zookeeper-3.3.3/bin/../zookeeper-3.3.3.jar:/home/st/zookeeper-3.3.3/bin/../lib/log4j-1.2.15.jar:/home/st/zookeeper-3.3.3/bin/../lib/jline-0.9.94.jar:/home/st/zookeeper-3.3.3/bin/../src/java/lib/*.jar:/home/st/zookeeper-3.3.3/bin/../conf:/usr/lib/jvm/jdk1.6.0_38/bin
>>> 2015-10-24 17:32:53,342 - INFO [main:Environment@97] - Server
>>> environment:java.library.path=/usr/lib/jvm/jre1.6.0_38/lib/i386/client:/usr/lib/jvm/jre1.6.0_38/lib/i386:/usr/lib/jvm/jre1.6.0_38/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
>>> 2015-10-24 17:32:53,342 - INFO [main:Environment@97] - Server
>>> environment:java.io.tmpdir=/tmp 2015-10-24 17:32:53,343 - INFO
>>> [main:Environment@97] - Server environment:java.compiler=<NA>
>>> 2015-10-24 17:32:53,343 - INFO [main:Environment@97] - Server
>>> environment:os.name=Linux 2015-10-24 17:32:53,343 - INFO
>>> [main:Environment@97] - Server environment:os.arch=i386 2015-10-24
>>> 17:32:53,344 - INFO [main:Environment@97] - Server
>>> environment:os.version=3.5.0-23-generic 2015-10-24 17:32:53,344 - INFO
>>> [main:Environment@97] - Server environment:user.name=st 2015-10-24
>>> 17:32:53,344 - INFO [main:Environment@97] - Server
>>> environment:user.home=/home/st 2015-10-24 17:32:53,345 - INFO
>>> [main:Environment@97] - Server
>>> environment:user.dir=/home/st/zookeeper-3.3.3/bin 2015-10-24 17:32:53,358 -
>>> INFO [main:ZooKeeperServer@663] - tickTime set to 2000 2015-10-24
>>> 17:32:53,359 - INFO [main:ZooKeeperServer@672] - minSessionTimeout set
>>> to -1 2015-10-24 17:32:53,359 - INFO [main:ZooKeeperServer@681] -
>>> maxSessionTimeout set to -1 2015-10-24 17:32:53,413 - INFO
>>> [main:NIOServerCnxn$Factory@143] - binding to port 0.0.0.0/0.0.0.0:2181
>>> 2015-10-24 17:32:53,478 - INFO [main:FileSnap@82] - Reading snapshot
>>> /var/zookeeper/version-2/snapshot.0 2015-10-24 17:32:53,509 - INFO
>>> [main:FileTxnSnapLog@208] - Snapshotting: 0
>>>
>>> <https://www.facebook.com/messages/100009278520866#>
>>>
>>>
>>> On Sat, Oct 24, 2015 at 5:25 PM, researcher cs <
>>> [email protected]> wrote:
>>>
>>>> zookeeper was worked well with another version but when i deleted it
>>>> and used another got this !
>>>>
>>>> On Sat, Oct 24, 2015 at 5:24 PM, researcher cs <
>>>> [email protected]> wrote:
>>>>
>>>>> i tired that too but i don't know where is the problem exactly ?
>>>>>
>>>>> On Sat, Oct 24, 2015 at 5:22 PM, Youzha <[email protected]> wrote:
>>>>>
>>>>>> I think it's strange if the procces wat not running but u still got
>>>>>> the exception if the address already used. Maybe u can try to restart 
>>>>>> your
>>>>>> machine and try to start zookeeper again
>>>>>> On Oct 24, 2015 10:12 PM, "researcher cs" <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> no it's empty
>>>>>>>
>>>>>>> On Sat, Oct 24, 2015 at 5:09 PM, Youzha <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Can u check with netstat command again. Is the proccess still
>>>>>>>> running?
>>>>>>>> On Oct 24, 2015 9:45 PM, "researcher cs" <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> i killed it  but when i tried to restart zookeeper problem still !
>>>>>>>>>
>>>>>>>>> On Sat, Oct 24, 2015 at 4:40 PM, Youzha <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Like angkur said.
>>>>>>>>>> Then kill with command
>>>>>>>>>> Kill -9 2243
>>>>>>>>>> On Oct 24, 2015 9:39 PM, "researcher cs" <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> tcp6 0 0 :::2181 :::* LISTEN 0 14885 2243/java  like this !
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Oct 24, 2015 at 4: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