Skip to content

kafka alter-partition-assignments

Alter partition assignments

Description

define brokers in which replicas of each partition reside, partitions will be reassigned

Synopsis

kafka alter-partition-assignments
    [--site <site>]
    [--cluster <cluster>]
    --topic <topic>
    [<partition_assignment>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of kafka cluster
     Example: --cluster "cluster-1"
     Default: default      Attributes: optional

topic - (string)

     Name of kafka topic
     Example: --topic "topic-1"
     Default: _None_      Attributes: required

partition_assignment - (string)

     Partition assignment
     Example: "partition_assignment-1"
     Default: _None_      Attributes: optional

Examples

Input:

! kafka alter-partition-assignments --topic "test-topic-1" "[[1,2],[2,3]]"
Output:
Partitions of topic test-topic-1 reassigned

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "kafka"
Service Instance cluster
Namespace
Object Type "topic"
Object ID topic

Please see Access Control for details.