Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A59027168 for ; Tue, 1 Nov 2011 15:51:55 +0000 (UTC) Received: (qmail 88340 invoked by uid 500); 1 Nov 2011 15:51:55 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 88312 invoked by uid 500); 1 Nov 2011 15:51:55 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 88303 invoked by uid 99); 1 Nov 2011 15:51:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 15:51:55 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 15:51:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 782FA32CE31 for ; Tue, 1 Nov 2011 15:51:33 +0000 (UTC) Date: Tue, 1 Nov 2011 15:51:33 +0000 (UTC) From: "Jun Rao (Commented) (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <1910723461.46132.1320162693493.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <286179083.44415.1320120512356.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KAFKA-180) Clean up shell scripts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141257#comment-13141257 ] Jun Rao commented on KAFKA-180: ------------------------------- SimpleConsumeShell is still useful for debugging purpose. I'd like to keep the code. The script can go. > Clean up shell scripts > ---------------------- > > Key: KAFKA-180 > URL: https://issues.apache.org/jira/browse/KAFKA-180 > Project: Kafka > Issue Type: Bug > Reporter: Jay Kreps > Assignee: Jay Kreps > > Currently it is a bit of a mess: > jkreps-mn:kafka-git jkreps$ ls bin > kafka-console-consumer-log4j.properties kafka-producer-perf-test.sh kafka-server-stop.sh zookeeper-server-stop.sh > kafka-console-consumer.sh kafka-producer-shell.sh kafka-simple-consumer-perf-test.sh zookeeper-shell.sh > kafka-console-producer.sh kafka-replay-log-producer.sh kafka-simple-consumer-shell.sh > kafka-consumer-perf-test.sh kafka-run-class.sh run-rat.sh > kafka-consumer-shell.sh kafka-server-start.sh zookeeper-server-start.sh > I think all the *-shell.sh scripts and all the *-simple-perf-test.sh scripts should die. If anyone has a use for these test classes we can keep them around and use the via kafka-run-class, but they are clearly not made for normal people to use. The *-shell.sh scripts are obsolete now that we have the *-console-*.sh scripts, since these do everything the old scripts did and more. I recommend we also delete the code for these. > I would like to change each tool so that it produces a usage line explaining what it does when run without arguments. Currently I actually had to go read the code to figure out what some of these are. > I would like to clean up places where the arguments are non-standard. Argument names should be the same across all the tools. > I would also like to rename kafka-replay-log-producer.sh to kafka-copy-topic.sh. I think this tool should also accept two zookeeper urls, the url of the input cluster and the url of the output cluster so this tool can be used to copy between clusters. I think we can have a --zookeeper a --input-zookeeper and a --output-zookeeper where --zookeeper is equivalent to setting both the input and the output zookeeper. Also confused why the options for this list --brokerinfo which can be either a zk url or brokerlist AND also --zookeeper which must be a zk url. > Any objections to all this? Any other gripes people have while I am in there? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira