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

Daisuke Kobayashi commented on KAFKA-1656:
------------------------------------------

Per my understand, kafka-reassign-partitions.sh should be the one to move given 
partitions as jayden notices. I've replicated the issue in house so we can 
remove "or alterd" from the usage, correct?
Meanwhile, I've confirmed with [~gwenshap] that partition re-assignment is 
being completely re-architected (see: 
https://cwiki.apache.org/confluence/display/KAFKA/KIP-4+-+Command+line+and+centralized+administrative+operations)
 and there are few JIRAs already being worked on: KAFKA-1678, KAFKA-1792 and 
possibly others. Any thoughts from experts?

> "replica-assignment" option  in "bin/kakfa-topics.sh" doesn't work with 
> "alter"
> -------------------------------------------------------------------------------
>
>                 Key: KAFKA-1656
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1656
>             Project: Kafka
>          Issue Type: Improvement
>          Components: tools
>    Affects Versions: 0.8.1.1
>         Environment: all
>            Reporter: jayden sun
>            Priority: Minor
>              Labels: newbie
>
> "replica-assignment" option  in "bin/kakfa-topics.sh" works only with 
> "--create" and doesn't work with "--alter", but the config comment is 
> somewhat confusing. 
> For example:
> bin/kafka-topics.sh --create --zookeeper 10.0.44.137:2181 
> --replica-assignment 1:2,1:2 --partitions 2 --topic topic
> i use the command above to create a topic with two partitions on broker 1 and 
> 2.
> and then i want to change partition count from two to four, and the newly 
> created partition on broker 3 and 4.
> So i try the command:
> bin/kafka-topics.sh --alter --zookeeper 10.0.44.137:2181 --replica-assignment 
> 3:4,3:4 --partitions 4 --topic topic
> But it does not works!!! "replica-assignment" can't be used with "partitions".
> What i can do is to add partitions like this:
> bin/kafka-topics.sh --alter --zookeeper 10.0.44.137:2181 --partitions 4 
> --topic topic
> and then use the partition reassignment command to change the brokers for 
> newly partitions  to 3 and 4.
> So,i think "or altered" in the comment for "--replica-assignment" should be 
> removed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to