使用kafkacat查找kafka集群的lead
Find the lead of kafka cluster using kafkacat
我在使用 tutorial 创建的 docker 个容器中有 kafka 集群。
当我 运行 kafkacat -L -b kafka-1:19092
我得到:
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
如何找到牵头经纪人?我想杀死它并在选举新领导后查看集群的行为。
集群有一个 控制器。
话题有领导
topic "__confluent.support.metrics" with 1 partitions:
partition 0, <b>leader 2</b>, replicas: 2,3, isrs: 2,3
我在使用 tutorial 创建的 docker 个容器中有 kafka 集群。
当我 运行 kafkacat -L -b kafka-1:19092
我得到:
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
如何找到牵头经纪人?我想杀死它并在选举新领导后查看集群的行为。
集群有一个 控制器。
话题有领导
topic "__confluent.support.metrics" with 1 partitions:
partition 0, <b>leader 2</b>, replicas: 2,3, isrs: 2,3