org.I0Itec.zkclient.exception.ZkTimeoutException

Unable to connect to zookeeper server within timeout: 6000

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 web101

  • via Google Groups by Eli Jordan, 2 weeks ago
    Unable to connect to zookeeper server within timeout: 6000
  • via Stack Overflow by srn
    , 4 months ago
    Unable to connect to zookeeper server within timeout: 6000
  • Unable to connect to zookeeper server within timeout: 6000
  • Stack trace

    • org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000 at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223) at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155) at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129) at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89) at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71) at kafka.server.KafkaServer.initZk(KafkaServer.scala:278) at kafka.server.KafkaServer.startup(KafkaServer.scala:168) at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) at kafka.Kafka$.main(Kafka.scala:67) at kafka.Kafka.main(Kafka.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 user
    Once, 1 month ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    20 more bugmates