Kafka Active Controller

What is a Controller?

The controller is one of the Kafka brokers, usually behaves like a normal broker, and has a controlling capability of managing partition state and replicas and reassignment of the partition.

How to get the currently active controller?

Zookeeper is the storage of the Kafka cluster, who elects the controller node either at the beginning of the cluster…