Zookeeper & Kafka error KeeperErrorCode=NodeExists Zookeeper & Kafka error KeeperErrorCode=NodeExists windows windows

Zookeeper & Kafka error KeeperErrorCode=NodeExists


Look for log.dirs in your server.properties file and delete all the Kafka and zookeeper logs from there and try restarting zookeeper and Kafka respectively. I was facing the same issue and doing this resolved it.


According to Confluent at https://groups.google.com/forum/#!topic/confluent-platform/h0gEik_Ii1E on 2016/10/08

Those are not errors, you can see the log level is INFO. It is simply logging that Kafka tried to create a node that already exists. Totally normal behavior for Kafka and nothing to worry about.

Is there an actual problem related to the message or is everything working correctly?


go to Kafka root directory and look for the logs file. and clear all logs. For instance:say your kafka is installed in the downloads folder:

cd ~/Downloads/kafka_2.13-2.6.0rm -rf logs

It will resolve the issue.