[
https://issues.apache.org/jira/browse/HADOOP-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer resolved HADOOP-4611.
--------------------------------------
Resolution: Not a Problem
Tool is still broken, but for different reasons. I'll file a different jira for
that.
> 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 was sent by Atlassian JIRA
(v6.2#6252)