Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zookeeper & Kafka error KeeperErrorCode=NodeExists

I have written a kafka consumer and producer that worked fine until today. This morning, when I started zookeeper and kafka, my consumer was not able to read messages, and I found this in the zookeeper logs:

INFO Got user-level KeeperException when processing sessionid:0x151c41e62e10000       type:create cxid:0x2a zxid:0x1e txntype:-1 reqpath:n/a       Error Path:/brokers/ids       Error:KeeperErrorCode = NodeExists for /brokers/ids         (org.apache.zookeeper.server.PrepRequestProcessor) 
like image 859
adellarocca Avatar asked Dec 21 '15 10:12

adellarocca


People also ask

What is ZooKeeper used for?

ZooKeeper is an open source Apache project that provides a centralized service for providing configuration information, naming, synchronization and group services over large clusters in distributed systems. The goal is to make these systems easier to manage with improved, more reliable propagation of changes.

What is ZooKeeper and its benefits?

Advertisements. ZooKeeper is a distributed co-ordination service to manage large set of hosts. Co-ordinating and managing a service in a distributed environment is a complicated process. ZooKeeper solves this issue with its simple architecture and API.

What means ZooKeeper?

Definition of zookeeper : one who maintains or cares for animals in a zoo.

Is ZooKeeper a database?

ZooKeeper Components shows the high-level components of the ZooKeeper service. With the exception of the request processor, each of the servers that make up the ZooKeeper service replicates its own copy of each of the components. The replicated database is an in-memory database containing the entire data tree.


1 Answers

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.

like image 55
Alok Mishra Avatar answered Sep 24 '22 08:09

Alok Mishra