HADOOP-9729. The example code of org.apache.hadoop.util.Tool is incorrect. Contributed by hellojinjie

This commit is contained in:
Jason Lowe 2015-05-08 21:28:38 +00:00
parent f523e963e4
commit ec2748dedb
2 changed files with 9 additions and 2 deletions

View File

@ -638,6 +638,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-7165. listLocatedStatus(path, filter) is not redefined in FilterFs
(Hairong Kuang via jlowe)
HADOOP-9729. The example code of org.apache.hadoop.util.Tool is incorrect
(hellojinjie via jlowe)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -54,8 +54,12 @@
* job.setReducerClass(MyReducer.class);
*
* // Submit the job, then poll for progress until the job is complete
* JobClient.runJob(job);
* return 0;
* RunningJob runningJob = JobClient.runJob(job);
* if (runningJob.isSuccessful()) {
* return 0;
* } else {
* return 1;
* }
* }
*
* public static void main(String[] args) throws Exception {