kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Clasen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-864) bin/kafka-gen-reassignment.sh
Date Wed, 17 Apr 2013 19:25:15 GMT

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

Scott Clasen commented on KAFKA-864:

Yes, agree that is possible, but if you want to do any automation of moving partitions, rotating
servers, etc, the output format of  ./bin/kafka-list-topic.sh makes doing this painful.

Cold ./bin/kafka-list-topic.sh be modified to (optionally with --json ?) to output a json
format that kafka-reassign-partitions.sh can understand?  That would make automating things
easier and basically cover the above functionality
> bin/kafka-gen-reassignment.sh
> -----------------------------
>                 Key: KAFKA-864
>                 URL: https://issues.apache.org/jira/browse/KAFKA-864
>             Project: Kafka
>          Issue Type: Improvement
>    Affects Versions: 0.8
>            Reporter: Scott Clasen
> Better tooling for replacing failed brokers and reassigning partitions.  
> The output of ./bin/kafka-list-topic.sh makes doing this in bulk painful.
> Tool should output json format acceptable to ./bin/kafka-reassign-partitions.sh
> Spec: bin/kafka-gen-reassignment.sh
> Option                                  Description
> ------                                  -----------
> --topic <topic>                         REQUIRED: The topic to be reassigned.
>                                           Defaults to all existing topics.
>                                           (default: )
> --partition <partition>                REQUIRED: The partition to be reassigned.
>                                           Defaults to all partitions.
>                                           (default: )
> --from <broker-id>                    REQUIRED: The broker to reassign the partition
> --to <broker-id>                        REQUIRED: The broker to reassign the partition
> --zookeeper <urls>                      REQUIRED: The connection string for
>                                           the zookeeper connection in the form
>                                           host:port. Multiple URLS can be
>                                           given to allow fail-over.
> Workflow: Replacing a broker
> ./bin/kafka-gen-reassignment.sh   --zookeeper <zks> --from <failed> --to
<new>  >  reassign.json
> ./bin/kafka-reassign-partitions.sh  --zookeeper <zks> --path-to-json-file reassign.json

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message