org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /brokers/ids/0

JIRA | Jay Kreps | 6 years ago
  1. 0

    You can get an error when restarting kafka if the zookeeper timeout hasn't elapsed. The reason is likely that the ephemeral nodes don't immediately disappear when the client disconnects but seem to persist until the timeout (30 secs or so). It would be good to find a way to forcefully terminate the connection or manually delete the znodes on a clean shutdown to avoid this issue. [2010-12-11 13:08:56,164] FATAL org.I0Itec.zkclient.exception.ZkNodeExistsException: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /brokers/ids/0 (kafka.server.KafkaServer) [2010-12-11 13:08:56,166] FATAL org.I0Itec.zkclient.exception.ZkNodeExistsException: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /brokers/ids/0 at org.I0Itec.zkclient.exception.ZkException.create(ZkException.java: 55) at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java: 685) at org.I0Itec.zkclient.ZkClient.create(ZkClient.java:304) at org.I0Itec.zkclient.ZkClient.createEphemeral(ZkClient.java:328) at kafka.utils.ZkUtils$.createEphemeralPath(ZkUtils.scala:63) at kafka.utils.ZkUtils $.createEphemeralPathExpectConflict(ZkUtils.scala:79) at kafka.server.KafkaZooKeeper.registerBrokerInZk(KafkaZooKeeper.scala: 54) at kafka.log.LogManager.startup(LogManager.scala:119) at kafka.server.KafkaServer.startup(KafkaServer.scala:62) at kafka.Kafka$.main(Kafka.scala:59) at kafka.Kafka.main(Kafka.scala) Caused by: org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /brokers/ids/0 at org.apache.zookeeper.KeeperException.create(KeeperException.java: 110) at org.apache.zookeeper.KeeperException.create(KeeperException.java: 42) at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:637) at org.I0Itec.zkclient.ZkConnection.create(ZkConnection.java:87) at org.I0Itec.zkclient.ZkClient$1.call(ZkClient.java:308) at org.I0Itec.zkclient.ZkClient$1.call(ZkClient.java:304) at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:

    JIRA | 6 years ago | Jay Kreps
    org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /brokers/ids/0
  2. 0

    historical servers stopped downloading segments from HDFS

    Google Groups | 2 years ago | Venkatesh Kavuluri
    org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /druid/prod1/loadQueue/druid-historical1-410557.phx01.dev.ebayc3.com:8080/mors_hadoop_2014-10-30T05:00:00.000Z_2014-10-30T06:00:00.000Z_2014-11-06T01:16:37.269Z
  3. 0

    coordinator node exception

    Google Groups | 2 years ago | xiaoxiaoluo
    org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /druid/loadQueue/hostname:8081/wikipedia_2013-08-31T00:00:00.000Z_2013-09-01T00:00:00.000Z_2014-08-08T10:46:55.206Z
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    transient test failure in BrokerServerViewTest.testMultipleServerAddedRemovedSegment

    GitHub | 1 year ago | himanshug
    org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /druid/segments/locahost:0
  6. 0

    org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists

    GitHub | 2 years ago | RebornHuan
    org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /workers/10.24.76.52/state

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.zookeeper.KeeperException$NodeExistsException

      KeeperErrorCode = NodeExists for /brokers/ids/0

      at org.apache.zookeeper.KeeperException.create()
    2. Zookeeper
      ZooKeeper.create
      1. org.apache.zookeeper.KeeperException.create(KeeperException.java:110)
      2. org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
      3. org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:637)
      3 frames
    3. ZooKeeper Client
      ZkClient$1.call
      1. org.I0Itec.zkclient.ZkConnection.create(ZkConnection.java:87)
      2. org.I0Itec.zkclient.ZkClient$1.call(ZkClient.java:308)
      3. org.I0Itec.zkclient.ZkClient$1.call(ZkClient.java:304)
      3 frames