You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (JIRA)" <ji...@apache.org> on 2011/08/11 20:24:28 UTC

[jira] [Updated] (HADOOP-4611) Documentation for Tool interface is a bit busted

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

Eli Collins updated HADOOP-4611:
--------------------------------

    Labels: newbie  (was: )

> Documentation for Tool interface is a bit busted
> ------------------------------------------------
>
>                 Key: HADOOP-4611
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4611
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: documentation, util
>            Reporter: Jeff Hammerbacher
>            Priority: Minor
>              Labels: newbie
>
> The documentation for the Tool interface will not work out of the box. It seems to have taken the Sort() implementation in examples, but has ripped out some important information.
> 1) args[1] and args[2] should probably be args[0] and args[1], as most MapReduce tasks don't take the first argument that examples.jar takes
> 2) int run() needs to actually return an int
> 3) JobConf.setInputPath() and JobConf.setOutputPath() are deprecated.
> 4) the call to ToolRunner.run() in main() should take "new MyApp()" instead of "Sort()" as an argument
> More generally, a working implementation of Tool in the docs would be handy.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira