birdayz / kaf

Modern CLI for Apache Kafka, written in Go.
Apache License 2.0
2.24k stars 143 forks source link

How to update topic replica #253

Closed prashantkalkar closed 1 year ago

prashantkalkar commented 1 year ago

How to update the topic replicas with the Kaf client.

Any example command will be useful.

prashantkalkar commented 1 year ago

I found the solution for this, Adding the answer here for completeness.

kaf topic update my-topic --partition-assignments '[[0,1,2],[1,2,0],[2,0,1]]'

I did this, on a topic that had replication factor as 1. But post running this command the replication factor is updated to 3.