Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KeeperErrorCode = NoNode for /brokers/topics/test-topic/partitions

While starting Kafka getting this following error.

KeeperErrorCode = NoNode for /brokers/topics/test-topic/partitions

Any help will be apreciated.

like image 460
Kshitij Kulshrestha Avatar asked Nov 12 '14 05:11

Kshitij Kulshrestha


2 Answers

I found my answer, It is because of version mismatch of zookeeper and kafka. Previously I was using kafka_2.8.0-0.8.0 with zookeeper 3.3.5 but then I installed kafka_2.9.2-0.8.1.1 with zookeeper 3.3.5 and now It's working fine.

like image 184
Kshitij Kulshrestha Avatar answered Nov 12 '22 10:11

Kshitij Kulshrestha


Most likely this is because the topic is not created yet. Topic nodes in Zookeeper are created when broker processes the first message to the topic or, alternatively, when the AdminUtils.createTopic(...) call was made.

like image 41
Denis Makarenko Avatar answered Nov 12 '22 10:11

Denis Makarenko