[
https://issues.apache.org/jira/browse/KAFKA-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365357#comment-15365357
]
Richard Lee commented on KAFKA-1543:
This jira item seems orphaned. Anyway, I took another stab at this in the
0.10.1.0 branch. See https://github.com/apache/kafka/pull/1596
I decided that kafka-topics.sh might not be the best place to change
replication factor, since it can have a pretty heavy impact on partition
assignment in the cluster. So, left it in kafka-reassign-partitions.sh, but
made it a per-topic config rather than a global command line argument, so that
each topic can specify its own replication factor.
Also, as kafka-reassign-partitions.sh is intended to operate on a running
cluster with --verify feedback of progress, it seems more likely to sidestep
any issues that would require cluster restart.
> Changing replication factor
> ---
>
> Key: KAFKA-1543
> URL: https://issues.apache.org/jira/browse/KAFKA-1543
> Project: Kafka
> Issue Type: Improvement
>Reporter: Alexey Ozeritskiy
>Assignee: Alexander Pakulov
> Attachments: can-change-replication.patch
>
>
> It is difficult to change replication factor by manual editing json config.
> I propose to add a key to kafka-reassign-partitions.sh command to
> automatically create json config.
> Example of usage
> {code}
> kafka-reassign-partitions.sh --zookeeper zk --replicas new-replication-factor
> --topics-to-move-json-file topics-file --broker-list 1,2,3,4 --generate >
> output
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)