特牛网址导航

解决:IDEA连接zookeeper客户端,出现 KeeperException$ConnectionLossException 异常_ideal-cs的博客-CSDN博客

网友收藏
解决:IDEA连接zookeeper出现 :org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /XXX一.问题描述:(1)代码如图所示:(2)使用IDEA连接zookeeper客户端,报KeeperException$ConnectionLossException异常二·报错原因:(1)创建zookeeper对象时,设置的连接会话超时太短(2)zookeeper_keeperexception$connect