MAPREDUCE-3241. [Rumen] Fix Rumen to ignore the AMStartedEvent. (amarrk)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1195535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
21b1e1da49
commit
7e056015ad
@ -30,6 +30,8 @@ Trunk (unreleased changes)
|
|||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
|
MAPREDUCE-3241. [Rumen] Fix Rumen to ignore the AMStartedEvent. (amarrk)
|
||||||
|
|
||||||
MAPREDUCE-3166. [Rumen] Make Rumen use job history api instead of relying
|
MAPREDUCE-3166. [Rumen] Make Rumen use job history api instead of relying
|
||||||
on current history file name format. (Ravi Gummadi)
|
on current history file name format. (Ravi Gummadi)
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
import org.apache.hadoop.mapred.TaskStatus;
|
import org.apache.hadoop.mapred.TaskStatus;
|
||||||
import org.apache.hadoop.mapreduce.TaskType;
|
import org.apache.hadoop.mapreduce.TaskType;
|
||||||
|
import org.apache.hadoop.mapreduce.jobhistory.AMStartedEvent;
|
||||||
import org.apache.hadoop.mapreduce.jobhistory.HistoryEvent;
|
import org.apache.hadoop.mapreduce.jobhistory.HistoryEvent;
|
||||||
import org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent;
|
import org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent;
|
||||||
import org.apache.hadoop.mapreduce.jobhistory.JobInfoChangeEvent;
|
import org.apache.hadoop.mapreduce.jobhistory.JobInfoChangeEvent;
|
||||||
@ -129,7 +130,11 @@ public void process(HistoryEvent event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// these are in lexicographical order by class name.
|
// these are in lexicographical order by class name.
|
||||||
if (event instanceof JobFinishedEvent) {
|
if (event instanceof AMStartedEvent) {
|
||||||
|
// ignore this event as Rumen currently doesnt need this event
|
||||||
|
//TODO Enhance Rumen to process this event and capture restarts
|
||||||
|
return;
|
||||||
|
} else if (event instanceof JobFinishedEvent) {
|
||||||
processJobFinishedEvent((JobFinishedEvent) event);
|
processJobFinishedEvent((JobFinishedEvent) event);
|
||||||
} else if (event instanceof JobInfoChangeEvent) {
|
} else if (event instanceof JobInfoChangeEvent) {
|
||||||
processJobInfoChangeEvent((JobInfoChangeEvent) event);
|
processJobInfoChangeEvent((JobInfoChangeEvent) event);
|
||||||
|
Loading…
Reference in New Issue
Block a user