[ 
https://issues.apache.org/jira/browse/KAFKA-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14707713#comment-14707713
 ] 

ASF GitHub Bot commented on KAFKA-1543:
---------------------------------------

GitHub user apakulov opened a pull request:

    https://github.com/apache/kafka/pull/161

    KAFKA-1543; Changing replication factor

    Adding support to change replication-factor via kafka-topics to avoid 
additional hassle of defining replicas explicilty. This change will allow to 
make this change with one line:
    
    ```
    kafka-topics.sh --zookeeper host:port --alter --topic name 
--replication-factor 3
    ```
    
    Also, made a small cleanup by replacing old junit.framework.Assert with 
org.junit.Assert

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apakulov/kafka KAFKA-1543

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/161.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #161
    
----
commit ed276ffdac107afe26e82d051fbeb8fa4f67416f
Author: Alexander Pakulov <a.paku...@gmail.com>
Date:   2015-08-22T00:46:21Z

    KAFKA-1543; Changing replication factor

----


> 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)

Reply via email to