Managing Kafka
Kafka Raft (KRaft) protocol
Zookeeper (deprecated)
It manages broker i.e keeps a list of them.
It helps in performing leader election for partitions.
It sends notifications to Kafka in case of changes i.e., broker changes like new broker added, broker dies, delete topics etc.
Upto Kafka
2.xcannot work withoutZookeeper.From
3.xcan work withoutZookeeperusing (KIP-500), using Kafka Raft instead.From
4.xwill not haveZookeeper.Works with odd number of servers.
They also have leaders and followers concept.
Zookeeper does not store consumer offset with Kafka > v0.10. Now it is stored in internal Kafka topic.
Since Kafka
2.2thekafka-topics.shCLI command references Kafka brokers and not Zookeeper for topic management and Zookeeper CLI argument is deprecated.
Zookeeper Cluster

Last updated