异常:
2014-02-16 22:07:19,284 [myid:] - WARN [main-SendThread(192.168.177.128:2181):ClientCnxn$SendThread@1089] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection timed out: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for / at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1468) at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1496) at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:725) at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:593) at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:365) at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323) at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)
windows上可以ping通linux server,但是zookeeper 客户端始终连接不上,最终查找到原因是 linux启用了防火墙。
关闭防火墙:
service iptables stop (不需要重启,但是重启后失效)
相关推荐
zookeeper client依赖jar包,核心依赖的jar包,生产者和消费者必不可少的
linux下编译zookeeper3.7.0出的头文件和库: proto.h recordio.h zookeeper.h zookeeper.jute.h zookeeper_log.h zookeeper_version.h libzookeeper_mt.a libzookeeper_mt.la libzookeeper_mt.so libzookeeper_mt....
zookeeper linux版本 windows版 通用 ,下载后解压直接运行bin中的zkServer
zookeeper linux 搭建流程,zookeeper linux 搭建流程zookeeper linux 搭建流程zookeeper linux 搭建流程。
Linux下Zookeeper集群的安装
zookeeper3.8.0 最新版 windows linux通用版 apache-zookeeper-3.8.0-bin.tar.gz
linux下的zookeeper压缩包和Windows下的zookeeper查看工具
zookeeper for windows 3.4.8。zookeeper windows 版, 建议测试使用, 实际项目中使用linux版本. 自己做个备份
搭建dubbo+zookeeper+kafka+redis+mq分布式大数据所需要的zookeeper环境,windows和linux都可以使用
官网有的时候慢的要死,下载下来了
NULL 博文链接:https://xkorey.iteye.com/blog/2201301
zookeeper安装成windows服务工具
zookeeper的客户端应用
zookpeer的linux环境下的安装软件,绝对好用。。。。。
zookeeper-3.4.9 aarch64 在linux中的安装包。
Zookeeper在windows搭建伪集群 Zookeeper在windows搭建伪集群
鉴于官方zookeeper在windows上部署需要手动启动,特别封装好可以自动安装windows服务的zookeeper-3.5.4windows服务注册包
【Free】Linux Zookeeper 3.6.3
zookeeper客户端连接工具,亲测有效
zookeeper数据迁移从单例到集群linux命令过程