springMVC与zookeeper的连接

来源:9-21 curator与springmvc整合调试与测试

weixin_慕雪7442106

2022-04-26

2022-04-26 13:24:18,086 [RMI TCP Connection(3)-127.0.0.1] [com.video.web.util.ZKCurator.init(ZKCurator.java:39)] - [ERROR] zookeeper瀹㈡埛绔繛鎺ャ�佸垵濮嬪寲閿欒锛�
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /admin/bgm

2022-04-26 13:26:31,279 [RMI TCP Connection(192.168.30.128:2181)] [org.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1111)]−[WARN]Clientsessiontimedout,havenotheardfromserverin11006msforsessionid0x02022−04−2613:26:31,279[RMITCPConnection(192.168.30.128:2181)][org.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11006ms for sessionid 0x0 2022-04-26 13:26:31,279 [RMI TCP Connection(192.168.30.128:2181)] [org.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1111)][WARN]Clientsessiontimedout,havenotheardfromserverin11006msforsessionid0x02022042613:26:31,279[RMITCPConnection(192.168.30.128:2181)][org.apache.zookeeper.ClientCnxnSendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11006ms for sessionid 0x0, closing socket connection and attempting reconnect
2022-04-26 13:26:32,384 [RMI TCP Connection(192.168.30.128:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.30.128/192.168.30.128:2181. Will not attempt to authenticate using SASL (unknown error)

老师springMVC和zookeeper整合的时候报错,报错乱码了,不过应该是客户端连接、初始化错误

写回答

2回答

weixin_慕雪7442106

提问者

2022-04-27

问题已解决,在虚拟机命令行里面使用systemctl stop firewalld.service关闭防火墙,问题解决。

0
1
weixin_慕雪7442106
上面那个命令是暂时关闭防火墙,系统重启后防火墙还会打开。systemctl disable firewalld.service这个命令是关闭防火墙服务,开机自启动,可以做到永久关闭防火墙服务。
2022-04-27
共1条回复

风间影月

2022-04-26

这是网络不通啊,检查一下网络的问题吧~

0
3
weixin_慕雪7442106
老师我重新仔细看了下错误,它报这个[error]Ensure path threw exception
2022-04-26
共3条回复

Spring Boot短视频小程序开发 全栈式实战项目

一门课程带你搞定短视频小程序全栈开发,毕业设计之利器!

2613 学习 · 1951 问题

查看课程