hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Hammerbacher (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-4611) Documentation for Tool interface is a bit busted
Date Fri, 07 Nov 2008 06:38:44 GMT
Documentation for Tool interface is a bit busted
------------------------------------------------

                 Key: HADOOP-4611
                 URL: https://issues.apache.org/jira/browse/HADOOP-4611
             Project: Hadoop Core
          Issue Type: Bug
          Components: documentation, util
            Reporter: Jeff Hammerbacher
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message