[ https://issues.apache.org/jira/browse/HADOOP-9729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708253#comment-13708253 ]
hellojinjie commented on HADOOP-9729: ------------------------------------- [~qwertymaniac] why always return 0, regardless of the job status? RunningJob runningJob = JobClient.runJob(job); if (runningJob.isSuccessful()) { return 0; } else { return -1; } > The example code of org.apache.hadoop.util.Tool is incorrect > ------------------------------------------------------------ > > Key: HADOOP-9729 > URL: https://issues.apache.org/jira/browse/HADOOP-9729 > Project: Hadoop Common > Issue Type: Bug > Components: util > Affects Versions: 1.1.2 > Reporter: hellojinjie > Original Estimate: 1h > Remaining Estimate: 1h > > see http://hadoop.apache.org/docs/stable/api/org/apache/hadoop/util/Tool.html > function public int run(String[] args) has no return value in the example > code -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira