Unable to connect to zookeeper server within timeout: 30000

Samebug tips1

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.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web80

  • via GitHub by chasevida
  • Stack trace

    • org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000 at org.I0Itec.zkclient.ZkClient.connect( at org.I0Itec.zkclient.ZkClient.<init>( at org.I0Itec.zkclient.ZkClient.<init>( 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    124 times, last one
    Unknown visitor
    Unknown visitorOnce,
    20 more bugmates