028-86922220

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

使用kafka-reassign-partitions.sh重新对topic分区,ReplicationFactor由1变成3

  1、准备topics-to-move.json用于--topics-to-move-json-file
  2、准备output.json用于--reassignment-json-file
  3、
     bin/kafka-reassign-partitions.sh --zookeeper 127.0.0.1:2181 --topics-to-move-json-file topics-to-move.json --broker-list "0,1,2" --generate > output.json
     bin/kafka-reassign-partitions.sh --zookeeper 127.0.0.1:2181 --reassignment-json-file output.json --execute
 

当前名称:使用kafka-reassign-partitions.sh重新对topic分区,ReplicationFactor由1变成3
URL网址:http://www.tsicrk.com/article/phohih.html

其他资讯

让你的专属顾问为你服务

3.1432s