[英]How to understand which partition replica kafka broker is down
There's topic with 22 replicas, 50 partitions and 22 running Kafka brokers.有 22 个副本、50 个分区和 22 个正在运行的 Kafka 代理的主题。
Topic manual assignment screen in Kafka Manager shows that there's Broker Down in all topic partitions as seen in the image. Kafka Manager 中的主题手动分配屏幕显示所有主题分区中都有Broker Down ,如图所示。
How to determine Kafka broker that's down using cli or Kafka Manager?如何使用 cli 或 Kafka Manager 确定已关闭的 Kafka 代理?
Currently, i look which broker id is missing in Partition replicas.目前,我查看分区副本中缺少哪个代理 ID。
This information on brokers is also maintained in Zookeeper.有关代理的信息也在 Zookeeper 中维护。 So, you could go onto one of the zookeeper nodes and use the cli to extract this and here's a command sequence you could use:
因此,您可以将 go 连接到其中一个 zookeeper 节点并使用 cli 来提取它,这是您可以使用的命令序列:
zookeeper-client
and this should invoke the zookeeper command promptzookeeper-client
即可调用 zookeeper 命令提示符ls /brokers/ids
and this should return the ids of all the active brokersls /brokers/ids
这应该返回所有活动代理的 ID
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.