zookeeper报错解决

在安装完毕zookeeper后启动客户端连接zkCli.sh,一直循环报下边的错误

 2015-05-12 03:32:31,748 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@975] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2015-05-12 03:32:31,749 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@852] - Socket connection established to localhost/127.0.0.1:2181, initiating session
2015-05-12 03:32:31,750 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1098] - Unable to read additional data from server sessionid 0x0, likely server has closed socket, closing socket connection and attempting reconnect 
 
起初以为是配置错误,但反复检查后确信不配置的问题。
出错原因:在配置主机名后没有重启,主机名没生效,重启机器就好了。

猜你喜欢

转载自shouwangv6.iteye.com/blog/2210473