0

I have kafka cluster in docker containers created using this tutorial. When I run kafkacat -L -b kafka-1:19092 i get:

Metadata for all topics (from broker 1: kafka-1:19092/1):
 3 brokers:
  broker 2 at kafka-2:29092
  broker 3 at kafka-3:39092
  broker 1 at kafka-1:19092
 1 topics:
  topic "__confluent.support.metrics" with 1 partitions:
    partition 0, leader 2, replicas: 2,3, isrs: 2,3

How can I find the lead broker? I would like to kill it and see behavior of cluster after electing new lead.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Rudziankoŭ
  • 10,681
  • 20
  • 92
  • 192
  • possible duplicate: https://stackoverflow.com/questions/48287339/how-to-know-the-broker-that-is-the-active-controller – H.Ç.T Jan 17 '20 at 14:48

1 Answers1

1

Clusters have a single controller.

Topics have leaders

topic "__confluent.support.metrics" with 1 partitions:
    partition 0, leader 2, replicas: 2,3, isrs: 2,3
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245