hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1436) Redesign Tool and ToolBase API and releted functionality
Date Mon, 28 May 2007 08:20:15 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-1436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enis Soztutar updated HADOOP-1436:
----------------------------------

    Attachment: redesignToolAndRelated_v1.0.patch

redesignToolAndRelated_v1.0.patch

This patch is intended for review. implemented basic changes discussed in HADOOP-1425. this
patch : 

1. deprecates ToolBase
2. introduces HadoopCommandLineParser class to parse command line options 
3. ToolRunner class to run classes implementing Tool

Below are the points that i would be glad to be reviewed : 
1. naming HadoopCommandLineParser (should it be CommandLineParser, or ArgumentParser, etc)
2. adding {{Tool.getOptions()}} and changing {{Tool#run(CommandLine)}}. All the actual use
cases for ToolBase do not use Commons CLI. 
3. -conf argument in https://issues.apache.org/jira/browse/HADOOP-1425#action_12499035



> Redesign Tool and ToolBase API and releted functionality
> --------------------------------------------------------
>
>                 Key: HADOOP-1436
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1436
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.14.0
>            Reporter: Enis Soztutar
>             Fix For: 0.14.0
>
>         Attachments: redesignToolAndRelated_v1.0.patch
>
>
> With the discussion from HADOOP-1425, we need better abstraction and better tool runner
utilities. 
> 1. Classes do not need to extend ToolBase 
> 2. functions for parsing general HadoopCommands (-fs, -conf, -jt) should be public
> 3. We need a ToolRunner, or similar functionality 
> 4. Also we need each class (implementing Tool) to be runnable (main method)
> 5. CLI objects can be passed to run method of the Tool class (arguable)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message