ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000

Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
    at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:876)
    at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98)
    at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:92)
    at bjsxt.zkclient.watcher.ZkClientWatcher1.main(ZkClientWatcher1.java:18)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=2048M; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=2048M; support was removed in 8.0

把超时时间5000ms 修改大一点 100000 搞定,记录下

发布了46 篇原创文章 · 获赞 15 · 访问量 13万+

猜你喜欢

转载自blog.csdn.net/LSSSSSS/article/details/102771955
今日推荐