You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-commits@hadoop.apache.org by tu...@apache.org on 2013/04/18 23:42:03 UTC
svn commit: r1469587 - in /hadoop/common/trunk/hadoop-mapreduce-project:
CHANGES.txt
hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java
Author: tucu
Date: Thu Apr 18 21:42:03 2013
New Revision: 1469587
URL: http://svn.apache.org/r1469587
Log:
MAPREDUCE-4932. mapreduce.job#getTaskCompletionEvents incompatible with Hadoop 1. (rkanter via tucu)
Modified:
hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java
Modified: hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt?rev=1469587&r1=1469586&r2=1469587&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt Thu Apr 18 21:42:03 2013
@@ -314,7 +314,11 @@ Release 2.0.5-beta - UNRELEASED
MAPREDUCE-5128. mapred-default.xml is missing a bunch of history server
configs. (sandyr via tucu)
- MAPREDUCE-4898. FileOutputFormat.checkOutputSpecs and FileOutputFormat.setOutputPath incompatible with MR1. (rkanter via tucu)
+ MAPREDUCE-4898. FileOutputFormat.checkOutputSpecs and
+ FileOutputFormat.setOutputPath incompatible with MR1. (rkanter via tucu)
+
+ MAPREDUCE-4932. mapreduce.job#getTaskCompletionEvents incompatible with
+ Hadoop 1. (rkanter via tucu)
Release 2.0.4-alpha - UNRELEASED
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java?rev=1469587&r1=1469586&r2=1469587&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/Job.java Thu Apr 18 21:42:03 2013
@@ -659,8 +659,24 @@ public class Job extends JobContextImpl
startFrom, numEvents);
}
});
+ }
+
+ /**
+ * Get events indicating completion (success/failure) of component tasks.
+ *
+ * @param startFrom index to start fetching events from
+ * @return an array of {@link TaskCompletionEvent}s
+ * @throws IOException
+ */
+ public TaskCompletionEvent[] getTaskCompletionEvents(final int startFrom)
+ throws IOException {
+ try {
+ return getTaskCompletionEvents(startFrom, 10);
+ } catch (InterruptedException ie) {
+ throw new RuntimeException(ie);
}
-
+ }
+
/**
* Kill indicated task attempt.
*