public class JobHistoryCopyService
extends org.apache.hadoop.yarn.service.CompositeService
implements org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler
| Constructor and Description |
|---|
JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.event.EventHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.FSDataInputStream |
getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) |
void |
handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event) |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
start() |
addService, getServices, removeService, stoppublic JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.event.EventHandler handler)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.CompositeServicepublic void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
throws IOException
handleEvent in interface org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandlerIOExceptionpublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.CompositeServicepublic static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.