Created on 12-10-2019 03:59 AM - edited on 01-04-2021 04:58 AM by K23
This video article provides the steps on how to use Reassign Partitions Tool:
Open YouTube video here
Create a file named topics-to-move.json with the following content:
{ "topics": [{"topic":"<partitionName>"}], "version":1 }
./kafka-reassign-partitions.sh --zookeeper master:2181 --topics-to-move-json-file topics-to-move.json --broker-list "<brokerID>" --generate
./kafka-reassign-partitions.sh --zookeeper master:2181 --reassignment-json-file reassign-partition.json --execute