zookeeper启动,链接服务问题

麦秆菊 发布于 2017/01/11 16:21
阅读 487
收藏 0

各位好,我在链接zookeeper服务(命令:zkCli.sh -server 127.0.0.1:2181
)的时候出现这个错误,不知道怎么搞:

2017-01-11 00:16:59,613 [myid:] - WARN  [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
 at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
 at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
 at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2017-01-11 00:17:00,717 [myid:] - INFO  [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (java.lang.SecurityException: Unable to locate a login configuration)


这个zookeeper的服务时成功启动了的

加载中
0
cyb_beta
cyb_beta
127.0.0.1 换成zoo.cfg里clientPortAddress 定义的ip登录
麦秆菊
麦秆菊
OK了,,原来是我zoo.cnf配置里面的一个datalog地址写错了
麦秆菊
麦秆菊
我这个zoo.cfg里面没有配置ip
返回顶部
顶部