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(org.apache.tez.dag.records.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,
Vertex vertex,
org.apache.tez.dag.api.TaskLocationHint locationHint,
org.apache.tez.runtime.api.impl.TaskSpec taskSpec) |
TaskAttemptImpl(org.apache.tez.dag.records.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,
Vertex vertex,
org.apache.tez.dag.api.TaskLocationHint locationHint,
org.apache.tez.runtime.api.impl.TaskSpec taskSpec,
org.apache.tez.dag.records.TezTaskAttemptID schedulingCausalTA,
Set<org.apache.hadoop.yarn.api.records.NodeId> nodesWithSiblingRunningAttempts) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAllocationTime() |
org.apache.hadoop.yarn.api.records.Container |
getAssignedContainer() |
org.apache.hadoop.yarn.api.records.ContainerId |
getAssignedContainerID() |
String |
getAssignedContainerMgrAddress() |
org.apache.tez.common.counters.TezCounters |
getCounters() |
org.apache.tez.dag.records.TezTaskAttemptID |
getCreationCausalAttempt() |
long |
getCreationTime() |
org.apache.tez.dag.records.TezDAGID |
getDAGID() |
List<String> |
getDiagnostics() |
long |
getFinishTime() |
org.apache.tez.dag.records.TezTaskAttemptID |
getID() |
TaskAttemptStateInternal |
getInternalState() |
long |
getLaunchTime() |
String |
getNodeHttpAddress()
If container Assigned then return the node's address, otherwise null.
|
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
String |
getNodeRackName()
If container Assigned then return the node's rackname, otherwise null.
|
Set<org.apache.hadoop.yarn.api.records.NodeId> |
getNodesWithSiblingRunningAttempts() |
float |
getProgress() |
TaskAttemptReport |
getReport() |
long |
getScheduleTime()
Get the time at which this attempt was scheduled
|
org.apache.tez.dag.records.TezTaskAttemptID |
getSchedulingCausalTA() |
TaskAttemptState |
getState() |
TaskAttemptState |
getStateNoLock() |
org.apache.tez.dag.records.TezTaskID |
getTaskID() |
org.apache.tez.dag.records.TaskAttemptTerminationCause |
getTerminationCause() |
org.apache.tez.dag.records.TezVertexID |
getVertexID() |
void |
handle(TaskAttemptEvent event) |
boolean |
isFinished()
Has attempt reached the final state or not.
|
protected void |
logJobHistoryAttemptFinishedEvent(TaskAttemptStateInternal state) |
protected void |
logJobHistoryAttemptStarted() |
protected void |
logJobHistoryAttemptUnsuccesfulCompletion(TaskAttemptState state,
org.apache.tez.runtime.api.TaskFailureType taskFailureType) |
protected String[] |
resolveHosts(String[] src) |
protected void |
sendInputFailedToConsumers() |
void |
setLastEventSent(org.apache.tez.runtime.api.impl.TezEvent lastEventSent) |
String |
toString() |
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(org.apache.tez.dag.records.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,
Vertex vertex,
org.apache.tez.dag.api.TaskLocationHint locationHint,
org.apache.tez.runtime.api.impl.TaskSpec taskSpec)
public TaskAttemptImpl(org.apache.tez.dag.records.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,
Vertex vertex,
org.apache.tez.dag.api.TaskLocationHint locationHint,
org.apache.tez.runtime.api.impl.TaskSpec taskSpec,
org.apache.tez.dag.records.TezTaskAttemptID schedulingCausalTA,
Set<org.apache.hadoop.yarn.api.records.NodeId> nodesWithSiblingRunningAttempts)
public org.apache.tez.dag.records.TezTaskAttemptID getID()
getID in interface TaskAttemptpublic org.apache.tez.dag.records.TezTaskID getTaskID()
getTaskID in interface TaskAttemptpublic org.apache.tez.dag.records.TezVertexID getVertexID()
getVertexID in interface TaskAttemptpublic org.apache.tez.dag.records.TezDAGID getDAGID()
getDAGID in interface TaskAttemptpublic org.apache.tez.dag.records.TezTaskAttemptID getSchedulingCausalTA()
public Set<org.apache.hadoop.yarn.api.records.NodeId> getNodesWithSiblingRunningAttempts()
getNodesWithSiblingRunningAttempts in interface TaskAttemptpublic TaskAttemptReport getReport()
getReport in interface TaskAttemptpublic List<String> getDiagnostics()
getDiagnostics in interface TaskAttemptpublic org.apache.tez.dag.records.TaskAttemptTerminationCause getTerminationCause()
getTerminationCause in interface TaskAttemptpublic org.apache.tez.common.counters.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 getCreationTime()
public org.apache.tez.dag.records.TezTaskAttemptID getCreationCausalAttempt()
public long getAllocationTime()
public long getScheduleTime()
TaskAttemptgetScheduleTime in interface TaskAttemptpublic long getFinishTime()
getFinishTime 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, org.apache.tez.runtime.api.TaskFailureType taskFailureType)
protected void sendInputFailedToConsumers()
public void setLastEventSent(org.apache.tez.runtime.api.impl.TezEvent lastEventSent)
setLastEventSent in interface TaskAttemptCopyright © 2019 Apache Software Foundation. All rights reserved.