简体   繁体   English

如何了解哪个分区副本kafka broker宕机了

[英]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 来提取它,这是您可以使用的命令序列:

  1. On the command line, just issue the command zookeeper-client and this should invoke the zookeeper command prompt在命令行上,只需发出命令zookeeper-client即可调用 zookeeper 命令提示符
  2. On the new prompt, issue the command - ls /brokers/ids and this should return the ids of all the active brokers在新提示符下,发出命令 - ls /brokers/ids这应该返回所有活动代理的 ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 取消重新分配后如何从kafka代理中删除孤立的分区副本? - How to remove orphaned partition replica from kafka broker after cancelling reassignment? Kafka:如何从副本集中删除代理 - Kafka: how to remove broker from Replica Set 有关经纪人的Kafka分区 - Kafka partition in relation to a broker 当代理关闭时,如何修复JAVA Kafka Producer错误“分区请求中接收到无效的元数据错误”和内存不足 - How to fix the JAVA Kafka Producer Error “Received invalid metadata error in produce request on partition” and Out of Memory when broker is down Kafka Broker 与分区负责人 - Kafka Broker vs Partition Leader 在卡夫卡处理经纪人 - handling broker down in kafka 卡夫卡经纪人倒闭 - Kafka Broker Goes Down kafka-reassign-partitions --generate for topic __commit_offsets 给了我奇怪的结果:分区副本只在一个代理上 - kafka-reassign-partitions --generate for topic __commit_offsets gives me strange result: partition replica only on one broker anyway 当给出包含分区数和副本因子详细信息的脚本时,在代理中创建主题的位置和方式 - Where and how topic does get created in broker when script with details on number of partition and replica factor is given 当代理宕机时,复制因子为 1 的 Kafka 主题分区会发生什么情况? - What happens to partition of Kafka topic with replication factor of 1 when a broker goes down?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM