Skip to main content
SumitraMenon
Silver ⭐️
Silver ⭐️
Dec 10, 2019 11:59 AM UTC

Support Video: How to use reassign partitions tool in Apache Kafka?

  • Oct 5, 2026 8:58 AM UTC
  • 0 replies
  • 1868 views
  • Translate All

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