org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Stop all kafka and zookeper proccesses ("ps -aux | grep zoo" and "ps -aux | grep kafka" and kill all the proccess ids) then, run zookeper and then run kafka server.

Solutions on the web

via GitHub by klippx
, 3 months ago
Unable to connect to zookeeper server within timeout: 30000
via GitHub by abtris
, 10 months ago
Unable to connect to zookeeper server within timeout: 30000
via GitHub by chasevida
, 9 months ago
Unable to connect to zookeeper server within timeout: 30000
via GitHub by klippx
, 3 months ago
Unable to connect to zookeeper server within timeout: 30000
via Stack Overflow by Sarpreet
, 1 month ago
Unable to connect to zookeeper server '10.98.144.178:2181' with timeout of 6000 ms
via GitHub by drcrallen
, 1 year ago
Unable to connect to zookeeper server within timeout: 30000
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232)
at org.I0Itec.zkclient.ZkClient.(ZkClient.java:156)
at org.I0Itec.zkclient.ZkClient.(ZkClient.java:130)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:76)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:58)
at kafka.admin.TopicCommand$.main(TopicCommand.scala:53)
at kafka.admin.TopicCommand.main(TopicCommand.scala)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
124 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
20 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.