You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2012/05/26 23:55:23 UTC
[jira] [Created] (MAPREDUCE-4285) Code sample in Tool javadocs is
broken
Steve Loughran created MAPREDUCE-4285:
-----------------------------------------
Summary: Code sample in Tool javadocs is broken
Key: MAPREDUCE-4285
URL: https://issues.apache.org/jira/browse/MAPREDUCE-4285
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: mrv1
Affects Versions: 1.0.3
Reporter: Steve Loughran
Priority: Minor
The javadocs in {{org.apache.hadoop.util.Tool}} contain an example to use the tool runner to invoke a tool.
If you copy and paste the example into a java file it doesn't even compile
# {{job.setInputPath()}} isn't there
# {{job.setOutputPath()}} isn't there
# {{job.waitForCompletion()}} isn't invoked
# the {{Tool.run()}} implementation doesn't contain a return statement.
The processed javadocs are online: [http://hadoop.apache.org/common/docs/r1.0.3/api/org/apache/hadoop/util/Tool.html]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira