Community Articles

Find and share helpful community-sourced technical articles.
Labels (1)
avatar
Community Manager

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
}
  1. Run the following command:
    ./kafka-reassign-partitions.sh --zookeeper master:2181 
    --topics-to-move-json-file topics-to-move.json --broker-list "<brokerID>" 
    --generate
  2. Take the output from previous Proposed partition reassignment configuration and create another json file reassign-partition.json.
  3. Run the following command: 
    ./kafka-reassign-partitions.sh --zookeeper master:2181 
    --reassignment-json-file reassign-partition.json --execute
1,340 Views
0 Kudos