Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 96215 invoked from network); 27 Feb 2006 22:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Feb 2006 22:02:37 -0000 Received: (qmail 57857 invoked by uid 500); 27 Feb 2006 22:02:36 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 57839 invoked by uid 500); 27 Feb 2006 22:02:36 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 57830 invoked by uid 99); 27 Feb 2006 22:02:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2006 14:02:25 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 942E7DD for ; Mon, 27 Feb 2006 23:01:55 +0100 (CET) Message-ID: <2075073385.1141077715605.JavaMail.jira@ajax.apache.org> Date: Mon, 27 Feb 2006 23:01:55 +0100 (CET) From: "Michel Tourn (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Assigned: (HADOOP-59) support generic command-line options In-Reply-To: <321463887.1140733957324.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-59?page=all ] Michel Tourn reassigned HADOOP-59: ---------------------------------- Assign To: Michel Tourn > support generic command-line options > ------------------------------------ > > Key: HADOOP-59 > URL: http://issues.apache.org/jira/browse/HADOOP-59 > Project: Hadoop > Type: Improvement > Components: conf > Versions: 0.1 > Reporter: Doug Cutting > Assignee: Michel Tourn > Fix For: 0.1 > > Hadoop commands should all support some common options. For example, it should be possible to specify the namenode, datanode, and, for that matter, any config option, in a generic way. > This could be implemented with code like: > public interface Tool extends Configurable { > void run(String[] args) throws Exception; > } > public class ToolBase implements Tool extends Configured { > public final void main(String[] args) throws Exception { > Configuration conf = new Configuration(); > ... parse config options from args into conf ... > this.configure(conf); > this.run(); > } > } > public MyTool extends ExcecutableBase { > public static void main(String[] args) throws Exception { > new MyTool().main(args); > } > } > The general command line syntax could be: > bin/hadoop [generalOptions] command [commandOptions] > Where generalOptions are things that ToolBase handles, and only the commandOptions are passed to Tool.run(). The most important generalOption would be '-D', which would define name/value pairs that are set in the configuration. This alone would permit folks to set the namenode, datanode, etc. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira