HADOOP-9729. The example code of org.apache.hadoop.util.Tool is incorrect. Contributed by hellojinjie
(cherry picked from commit ec2748dedb
)
This commit is contained in:
parent
dfc4a62f7d
commit
1523ed5a76
|
@ -185,6 +185,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-7165. listLocatedStatus(path, filter) is not redefined in FilterFs
|
HADOOP-7165. listLocatedStatus(path, filter) is not redefined in FilterFs
|
||||||
(Hairong Kuang via jlowe)
|
(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
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -54,8 +54,12 @@ import org.apache.hadoop.conf.Configurable;
|
||||||
* job.setReducerClass(MyReducer.class);
|
* job.setReducerClass(MyReducer.class);
|
||||||
*
|
*
|
||||||
* // Submit the job, then poll for progress until the job is complete
|
* // Submit the job, then poll for progress until the job is complete
|
||||||
* JobClient.runJob(job);
|
* RunningJob runningJob = JobClient.runJob(job);
|
||||||
* return 0;
|
* if (runningJob.isSuccessful()) {
|
||||||
|
* return 0;
|
||||||
|
* } else {
|
||||||
|
* return 1;
|
||||||
|
* }
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* public static void main(String[] args) throws Exception {
|
* public static void main(String[] args) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue