Return-Path: X-Original-To: apmail-kafka-dev-archive@www.apache.org Delivered-To: apmail-kafka-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C29BCFE83 for ; Tue, 16 Apr 2013 21:57:17 +0000 (UTC) Received: (qmail 98408 invoked by uid 500); 16 Apr 2013 21:57:17 -0000 Delivered-To: apmail-kafka-dev-archive@kafka.apache.org Received: (qmail 98358 invoked by uid 500); 16 Apr 2013 21:57:17 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 98282 invoked by uid 99); 16 Apr 2013 21:57:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 21:57:17 +0000 Date: Tue, 16 Apr 2013 21:57:17 +0000 (UTC) From: "Scott Clasen (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-864) bin/kafka-gen-reassignment.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Scott Clasen created KAFKA-864: ---------------------------------- Summary: 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 REQUIRED: The topic to be reassigned. Defaults to all existing topics. (default: ) --partition REQUIRED: The partition to be reassigned. Defaults to all partitions. (default: ) --from REQUIRED: The broker to reassign the partition from --to REQUIRED: The broker to reassign the partition to. --zookeeper 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 --from --to > reassign.json ./bin/kafka-reassign-partitions.sh --zookeeper --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