启动zookeeper客户端出现如下信息:
2020-08-07 17:32:29,785 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1112] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2020-08-07 17:32:29,887 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1244] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused
原因:
服务端没启动
服务端启动命令
cd zookeeper/apache-zookeeper-3.5.6-bin/bin
./zkServer.sh start