CuratorConnectionLossException解决方案

博客介绍了重启操作,指出只需重启zookeeper和项目即可。涉及信息技术领域的服务协调与项目运行相关内容。

重启

重启zookeeper,重启项目即可

为什么出现如下报错[localhost][demo-hello][2025-07-17 15:31:29.305][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) [localhost][demo-hello][2025-07-17 15:31:31.347][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Socket error occurred: localhost/0:0:0:0:0:0:0:1:2181: Connection refused: no further information [localhost][demo-hello][2025-07-17 15:31:32.449][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) [localhost][demo-hello][2025-07-17 15:31:34.464][ INFO][24992][localhost:2181)][o.a.z.ClientCnxn ] : [] [] [] Socket error occurred: localhost/127.0.0.1:2181: Connection refused: no further information [localhost][demo-hello][2025-07-17 15:31:35.302][ERROR][24992][ main][o.a.c.ConnectionState ] : [] [] [] Connection timed out for connection string (localhost:2181) and timeout (5000) / elapsed (18644) org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:225) at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:94) at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:117) at org.apache.curator.framework.imps.CuratorFrameworkImpl.getZooKeeper(CuratorFrameworkImpl.java:489) at org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:237) at org.apache.curator.framework.imps.ExistsBuilderImpl$3.call(ExistsBuilderImpl.java:226) at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109) at org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForegroundStandard(ExistsBuilderImpl.java:223)
最新发布
07-18
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值