Using kafka-reassign-partitions.sh to re-partition topic, ReplicationFactor is changed from 1 to 3
1. Prepare topics-to-move.json for-- topics-to-move-json-file
2. Prepare output.json for-- reassignment-json-file
3 、
Bin/kafka-reassign-partitions.sh-- zookeeper 127.0.0.1 topics-to-move-json-file topics-to-move.json 2181-- topics-to-move-json-file topics-to-move.json-- broker-list "0meme 1meme 2"-- generate > output.json
Bin/kafka-reassign-partitions.sh-- zookeeper 127.0.0.1 reassignment-json-file output.json-- execute