public class TaskAttemptImpl extends Object implements TaskAttempt, org.apache.hadoop.yarn.event.EventHandler<TaskAttemptEvent>
TaskAttempt.TaskAttemptStatus| Modifier and Type | Field and Description |
|---|---|
protected AppContext |
appContext |
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.hadoop.yarn.event.EventHandler |
eventHandler |
protected static TaskAttemptImpl.FailedTransitionHelper |
FAILED_HELPER |
protected boolean |
isRescheduled |
protected static TaskAttemptImpl.KilledTransitionHelper |
KILLED_HELPER |
| Constructor and Description |
|---|
TaskAttemptImpl(TezTaskAttemptID attemptId,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
TaskCommunicatorManagerInterface taskCommunicatorManagerInterface,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.util.Clock clock,
TaskHeartbeatHandler taskHeartbeatHandler,
AppContext appContext,
boolean isRescheduled,
org.apache.hadoop.yarn.api.records.Resource resource,
ContainerContext containerContext,
boolean leafVertex,
Task task,
TaskLocationHint locationHint,
TaskSpec taskSpec) |
TaskAttemptImpl(TezTaskAttemptID attemptId,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
TaskCommunicatorManagerInterface taskCommunicatorManagerInterface,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.util.Clock clock,
TaskHeartbeatHandler taskHeartbeatHandler,
AppContext appContext,
boolean isRescheduled,
org.apache.hadoop.yarn.api.records.Resource resource,
ContainerContext containerContext,
boolean leafVertex,
Task task,
TaskLocationHint locationHint,
TaskSpec taskSpec,
TezTaskAttemptID schedulingCausalTA) |
protected final org.apache.hadoop.conf.Configuration conf
protected org.apache.hadoop.yarn.event.EventHandler eventHandler
protected final AppContext appContext
protected final boolean isRescheduled
protected static final TaskAttemptImpl.FailedTransitionHelper FAILED_HELPER
protected static final TaskAttemptImpl.KilledTransitionHelper KILLED_HELPER
public TaskAttemptImpl(TezTaskAttemptID attemptId, org.apache.hadoop.yarn.event.EventHandler eventHandler, TaskCommunicatorManagerInterface taskCommunicatorManagerInterface, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.util.Clock clock, TaskHeartbeatHandler taskHeartbeatHandler, AppContext appContext, boolean isRescheduled, org.apache.hadoop.yarn.api.records.Resource resource, ContainerContext containerContext, boolean leafVertex, Task task, TaskLocationHint locationHint, TaskSpec taskSpec)
public TaskAttemptImpl(TezTaskAttemptID attemptId, org.apache.hadoop.yarn.event.EventHandler eventHandler, TaskCommunicatorManagerInterface taskCommunicatorManagerInterface, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.util.Clock clock, TaskHeartbeatHandler taskHeartbeatHandler, AppContext appContext, boolean isRescheduled, org.apache.hadoop.yarn.api.records.Resource resource, ContainerContext containerContext, boolean leafVertex, Task task, TaskLocationHint locationHint, TaskSpec taskSpec, TezTaskAttemptID schedulingCausalTA)
public TezTaskAttemptID getID()
getID in interface TaskAttemptpublic TezTaskID getTaskID()
getTaskID in interface TaskAttemptpublic TezVertexID getVertexID()
getVertexID in interface TaskAttemptpublic TezDAGID getDAGID()
getDAGID in interface TaskAttemptpublic TezTaskAttemptID getSchedulingCausalTA()
public TaskAttemptReport getReport()
getReport in interface TaskAttemptpublic List<String> getDiagnostics()
getDiagnostics in interface TaskAttemptpublic TaskAttemptTerminationCause getTerminationCause()
getTerminationCause in interface TaskAttemptpublic TezCounters getCounters()
getCounters in interface TaskAttemptpublic float getProgress()
getProgress in interface TaskAttemptpublic TaskAttemptState getState()
getState in interface TaskAttemptpublic TaskAttemptState getStateNoLock()
getStateNoLock in interface TaskAttemptpublic boolean isFinished()
TaskAttemptisFinished in interface TaskAttemptpublic org.apache.hadoop.yarn.api.records.ContainerId getAssignedContainerID()
getAssignedContainerID in interface TaskAttemptpublic org.apache.hadoop.yarn.api.records.Container getAssignedContainer()
getAssignedContainer in interface TaskAttemptpublic String getAssignedContainerMgrAddress()
getAssignedContainerMgrAddress in interface TaskAttemptpublic org.apache.hadoop.yarn.api.records.NodeId getNodeId()
getNodeId in interface TaskAttemptpublic String getNodeHttpAddress()
getNodeHttpAddress in interface TaskAttemptpublic String getNodeRackName()
getNodeRackName in interface TaskAttemptpublic long getLaunchTime()
getLaunchTime in interface TaskAttemptpublic long getDurationNs()
public long getCreationTime()
public TezTaskAttemptID getCreationCausalAttempt()
public long getAllocationTime()
public long getScheduleTime()
TaskAttemptgetScheduleTime in interface TaskAttemptpublic long getFinishTime()
getFinishTime in interface TaskAttemptpublic Task getTask()
getTask in interface TaskAttemptpublic void handle(TaskAttemptEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<TaskAttemptEvent>public TaskAttemptStateInternal getInternalState()
protected void logJobHistoryAttemptStarted()
protected void logJobHistoryAttemptFinishedEvent(TaskAttemptStateInternal state)
protected void logJobHistoryAttemptUnsuccesfulCompletion(TaskAttemptState state, TaskFailureType taskFailureType)
protected void sendInputFailedToConsumers()
public void setLastEventSent(TezEvent lastEventSent)
setLastEventSent in interface TaskAttemptCopyright © 2021 Apache Software Foundation. All rights reserved.