Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Celebrating as our community reaches 100,000 members! Thank you!
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,043 Views
0 Kudos
Version history
Last update:
‎01-04-2021 04:58 AM
Updated by:
Rising Star Rising Star
Contributors