public class JobHistoryCopyService
extends org.apache.hadoop.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<org.apache.hadoop.yarn.event.Event> 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) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
addIfService, addService, getServices, removeService, serviceStop
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, org.apache.hadoop.yarn.event.EventHandler<org.apache.hadoop.yarn.event.Event> handler)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.CompositeService
Exception
public void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event) throws IOException
handleEvent
in interface org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler
IOException
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.CompositeService
Exception
public static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) throws IOException
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.