Skip to content

kafka-reassign-partitions

kafka-reassign-partitions utility is used to move topic partitions between replicas (based on a partition reassignment JSON file).

kafka-reassign-partitions uses ReassignPartitionsCommand for its execution.

Options

$ ./bin/kafka-reassign-partitions.sh --help
This tool helps to move topic partitions between replicas.
Option                                  Description
------                                  -----------
--additional                            Execute this reassignment in addition
                                          to any other ongoing ones. This
                                          option can also be used to change
                                          the throttle of an ongoing
                                          reassignment.
...

Demo

Demo: kafka-reassign-partitions