You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ewen Cheslack-Postava (JIRA)" <ji...@apache.org> on 2016/12/29 22:08:58 UTC

[jira] [Commented] (KAFKA-3947) kafka-reassign-partitions.sh should support dumping current assignment

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

Ewen Cheslack-Postava commented on KAFKA-3947:
----------------------------------------------

[~kawamuray] Any progress on this? It got bumped to 0.10.2.0 since the patch was still in flight, and now we're getting closer to 0.10.2 feature freeze (and this may need some public discussion which can take some time). Any follow up based on the comments above?

> kafka-reassign-partitions.sh should support dumping current assignment
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-3947
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3947
>             Project: Kafka
>          Issue Type: Improvement
>          Components: tools
>    Affects Versions: 0.10.0.0
>            Reporter: Yuto Kawamura
>            Assignee: Yuto Kawamura
>            Priority: Minor
>             Fix For: 0.10.2.0
>
>
> When I building my own tool to perform reassignment of partitions, I realized that there's no way to dump the current partition assignment in machine parsable format such as JSON.
> Actually giving {{\-\-generate}} option to the kafka-reassign-partitions.sh script dumps the current assignment of topic given by {{\-\-topics-to-assign-json-file}} but it's very inconvenient because of:
> - I want the dump containing all topics. That is, I wanna skip generating the list of current topics to pass it to the generate command.
> - The output is concatenated with the result of reassignment so can't do simply something like: {{kafka-reassign-partitions.sh --generate ... > current-assignment.json}}
> - Don't need to ask kafka to generate reassginment to get the current assignment in the first place.
> Here I'd like to add the {{\-\-dump}} option to kafka-reassign-partitions.sh.
> I was wondering whether this functionality should be provided by {{kafka-reassign-partitions.sh}} or {{kafka-topics.sh}} but now I think {{kafka-reassign-partitions.sh}} should be much proper as the resulting JSON should be in the format of {{\-\-reassignment-json-file}} which sticks to this command.
> Will follow up the patch implements this shortly.



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