Search in sources :

Example 1 with JobFinishedEvent

use of org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent in project hadoop by apache.

the class JobImpl method logJobHistoryFinishedEvent.

void logJobHistoryFinishedEvent() {
    this.setFinishTime();
    JobFinishedEvent jfe = createJobFinishedEvent(this);
    LOG.info("Calling handler for JobFinishedEvent ");
    this.getEventHandler().handle(new JobHistoryEvent(this.jobId, jfe));
}
Also used : JobFinishedEvent(org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent) JobHistoryEvent(org.apache.hadoop.mapreduce.jobhistory.JobHistoryEvent)

Example 2 with JobFinishedEvent

use of org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent in project hadoop by apache.

the class JobImpl method createJobFinishedEvent.

// JobFinishedEvent triggers the move of the history file out of the staging
// area. May need to create a new event type for this if JobFinished should 
// not be generated for KilledJobs, etc.
private static JobFinishedEvent createJobFinishedEvent(JobImpl job) {
    job.mayBeConstructFinalFullCounters();
    JobFinishedEvent jfe = new JobFinishedEvent(job.oldJobId, job.finishTime, job.succeededMapTaskCount, job.succeededReduceTaskCount, job.failedMapTaskCount, job.failedReduceTaskCount, job.finalMapCounters, job.finalReduceCounters, job.fullCounters);
    return jfe;
}
Also used : JobFinishedEvent(org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent)

Aggregations

JobFinishedEvent (org.apache.hadoop.mapreduce.jobhistory.JobFinishedEvent)2 JobHistoryEvent (org.apache.hadoop.mapreduce.jobhistory.JobHistoryEvent)1