MAPREDUCE-5846. Rumen doesn't understand JobQueueChangedEvent (Nathan Roberts via raviprak)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1589597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
32e76decb5
commit
10510bf324
|
@ -49,6 +49,8 @@ Release 2.5.0 - UNRELEASED
|
|||
MAPREDUCE-5642. TestMiniMRChildTask fails on Windows.
|
||||
(Chuan Liu via cnauroth)
|
||||
|
||||
MAPREDUCE-5846. Rumen doesn't understand JobQueueChangedEvent (Nathan Roberts via raviprak)
|
||||
|
||||
Release 2.4.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -38,6 +38,7 @@ import org.apache.hadoop.mapreduce.jobhistory.JobInitedEvent;
|
|||
import org.apache.hadoop.mapreduce.jobhistory.JobPriorityChangeEvent;
|
||||
import org.apache.hadoop.mapreduce.jobhistory.JobStatusChangedEvent;
|
||||
import org.apache.hadoop.mapreduce.jobhistory.JobSubmittedEvent;
|
||||
import org.apache.hadoop.mapreduce.jobhistory.JobQueueChangeEvent;
|
||||
import org.apache.hadoop.mapreduce.jobhistory.JobUnsuccessfulCompletionEvent;
|
||||
import org.apache.hadoop.mapreduce.jobhistory.MapAttemptFinished;
|
||||
import org.apache.hadoop.mapreduce.jobhistory.MapAttemptFinishedEvent;
|
||||
|
@ -144,6 +145,8 @@ public class JobBuilder {
|
|||
processJobInitedEvent((JobInitedEvent) event);
|
||||
} else if (event instanceof JobPriorityChangeEvent) {
|
||||
processJobPriorityChangeEvent((JobPriorityChangeEvent) event);
|
||||
} else if (event instanceof JobQueueChangeEvent) {
|
||||
processJobQueueChangeEvent((JobQueueChangeEvent) event);
|
||||
} else if (event instanceof JobStatusChangedEvent) {
|
||||
processJobStatusChangedEvent((JobStatusChangedEvent) event);
|
||||
} else if (event instanceof JobSubmittedEvent) {
|
||||
|
@ -611,6 +614,14 @@ public class JobBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
private void processJobQueueChangeEvent(JobQueueChangeEvent event) {
|
||||
// set the queue name if existing
|
||||
String queue = event.getJobQueueName();
|
||||
if (queue != null) {
|
||||
result.setQueue(queue);
|
||||
}
|
||||
}
|
||||
|
||||
private void processJobStatusChangedEvent(JobStatusChangedEvent event) {
|
||||
result.setOutcome(Pre21JobHistoryConstants.Values
|
||||
.valueOf(event.getStatus()));
|
||||
|
|
Loading…
Reference in New Issue