bin/kafka-preferred-replica-election.sh --zookeeper hostzk/kafka-real
bin/kafka-preferred-replica-election.sh --zookeeper localhost:12913/kafka --path-to-json-file topicPartitionList.json
topicPartitionList.json:
{"partitions":[{"topic":"topic","partition": 0},{"topic":"topic","partition": 1},{"topic":"topic","partition": 2},{"topic":"topic","partition": 3},{"topic":"topic","partition": 4},{"topic":"topic","partition": 5},{"topic":"topic","partition": 6},{"topic":"topic","partition": 7}]}
本文介绍使用 Kafka 的 preferred-replica-election.sh 脚本进行副本优选选举的方法,并提供了一个具体的例子,包括 zookeeper 的配置及指定的主题分区列表。
1653

被折叠的 条评论
为什么被折叠?



