Unable to read additional data from server SessionID 0x0

Source: Internet
Author: User



Today, three zookeeper were installed in this machine, Server1,server2,server3.


tickTime=2000

initLimit=5  

syncLimit=2  

dataDir=/Users/google/Work/Program/zookeeper/server1/zookeeper-3.4.6/data

dataLogDir=/Users/google/Work/Program/zookeeper/server1/zookeeper-3.4.6/logs

clientPort=4080  

server.1=127.0.0.1:9991:7770  

server.2=127.0.0.1:9992:7771  

server.3=127.0.0.1:9993:7772  


Then started the Server3 zkserver.sh, with Server1 zkcli.sh to connect, the results reported the following error:


2015-05-25 18:06:21,667 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)
JLine support is enabled
2015-05-25 18:06:21,678 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Socket connection established to 127.0.0.1/127.0.0.1:4083, initiating session
2015-05-25 18:06:21,690 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
[zk: 127.0.0.1:4083(CONNECTING) 0] 2015-05-25 18:06:23,045 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)
2015-05-25 18:06:23,047 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Socket connection established to 127.0.0.1/127.0.0.1:4083, initiating session
2015-05-25 18:06:23,048 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2015-05-25 18:06:24,521 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)
2015-05-25 18:06:24,522 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Socket connection established to 127.0.0.1/127.0.0.1:4083, initiating session
2015-05-25 18:06:24,523 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2015-05-25 18:06:25,942 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)
2015-05-25 18:06:25,943 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Socket connection established to 127.0.0.1/127.0.0.1:4083, initiating session
2015-05-25 18:06:25,944 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2015-05-25 18:06:27,717 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)
2015-05-25 18:06:27,717 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Socket connection established to 127.0.0.1/127.0.0.1:4083, initiating session
2015-05-25 18:06:27,718 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2015-05-25 18:06:29,608 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)
2015-05-25 18:06:29,609 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Socket connection established to 127.0.0.1/127.0.0.1:4083, initiating session
2015-05-25 18:06:29,610 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect
2015-05-25 18:06:31,561 [myid:] - INFO  [main-SendThread(127.0.0.1:4083):[email protected]] - Opening socket connection to server 127.0.0.1/127.0.0.1:4083. Will not attempt to authenticate using SASL (java.lang.SecurityException: ?????λ??¼????)


It became clear later that, since I had configured 3 machines in Zoo.cfg, but only 1 were started, zookeeper would think the service was in an unusable state.



Zookeeper has an election algorithm that, when the entire cluster exceeds half of the machine down, zookeeper will assume that the cluster is in an unusable state.



All, 3 machines only start one cannot connect, if start 2 and above can connect.



Unable to read additional data from server SessionID 0x0


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.