简体   繁体   English

从kafka中的副本中删除无效的经纪人信息

[英]Remove invalid broker Information from Replicas in kafka

I was trying to increase the replication factor of a topic by providing a json as specified in docs. 我试图通过提供docs中指定的json来增加主题的复制因子。

https://kafka.apache.org/0102/documentation.html https://kafka.apache.org/0102/documentation.html

By mistake i put invalid broker id in specifying replication list. 我错误地将无效的代理ID放在指定复制列表中。 Even if did the rollback, that invalid broker id is not going off. 即使回滚,该无效的代理ID也不会消失。

Is there a way to fix it. 有没有办法解决它。 Please help 请帮忙

Topic: cms_scf_images_zip Partition: 16 Leader: 4 Replicas: 4,6,7,8 Isr: 4,6,7 Topic: cms_scf_images_zip Partition: 17 Leader: 5 Replicas: 5,7,1 Isr: 5,7,1

8 is the invalid broker id 8是无效的经纪人ID

I posted a solution here . 我在这里发布了一个解决方案。

Spin up a new broker with an id of 8. 启动ID为8的新经纪人。

Using ./kafka-topics.sh check that node 8 is in the isr column. 使用./kafka-topics.sh检查节点8在isr列中。

Once it is sync'd, you can use ./kafka-reassign-partitions.sh to remove it as a replica. 同步后,您可以使用./kafka-reassign-partitions.sh将其作为副本删除。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM