当前位置:   article > 正文

zookeeper Client Session 0x0 for server null

zookeeper Client Session 0x0 for server null
昨天自己写程序来测试调用单机模式的zookeeper服务。服务的安装不说了,网上太多了。当我安装完毕,在虚拟机本地调用zkCli来调试,没有问题。但在虚拟机外调用,总是连接不上,报错:

  1. [08-21 18:20:59 WARN ] org.apache.zookeeper.ClientCnxn$SendThread - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
  2. java.net.ConnectException : Connection timed out: no further information
  3. at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  4. at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
  5. at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
  6. at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1041)
  7. [08-21 18:20:59 DEBUG] org.apache.zookeeper.ClientCnxnSocketNIO - Ignoring exception during shutdown input

最后发现时虚拟机防火墙开着,关闭防火墙后则一切正常。
关闭防火墙命令:service iptables stop

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/724358
推荐阅读
相关标签
  

闽ICP备14008679号