Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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 from
      --to <broker-id> REQUIRED: The broker to reassign the partition to.
      --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

        Activity

        Scott Clasen created issue -
        Jay Kreps made changes -
        Field Original Value New Value
        Resolution Duplicate [ 3 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Scott Clasen
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development