Modifier and Type | Class and Description |
---|---|
static class |
Task.Disposition |
static class |
Task.TrackingState
Tracking plugin state.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled
True if the application has requested that the resource request or
application run be cancelled.
|
org.apache.hadoop.yarn.api.records.ContainerStatus |
completionStatus |
long |
completionTime |
org.apache.hadoop.yarn.api.records.Container |
container
The YARN container assigned to this task.
|
org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest |
containerRequest
Tracks the container request between request and allocation.
|
Task.Disposition |
disposition
Disposition of a completed task: whether it was cancelled, succeeded or
failed.
|
Throwable |
error |
long |
launchTime |
static long |
MAX_CANCELLATION_TIME
Maximum amount of time to wait when canceling a job in the REQUESTING
state.
|
Map<String,Object> |
properties |
Scheduler |
scheduler |
protected TaskState |
state
Life-cycle state of this task.
|
long |
stateStartTime |
SchedulerStateImpl |
taskGroup
The scheduler group that manages this task.
|
int |
taskId
Internal identifier for the task.
|
TaskSpec |
taskSpec
Identifies the type of container needed and the details of the task to run.
|
protected Task.TrackingState |
trackingState
Tracking state for an additional task tracker (such as using
ZooKeeper to track Drill-bits.)
|
int |
tryCount |
Constructor and Description |
---|
Task(Scheduler scheduler,
TaskSpec taskSpec) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
Task |
copy() |
org.apache.hadoop.yarn.api.records.Container |
getContainer() |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId() |
ContainerRequestSpec |
getContainerSpec() |
Task.Disposition |
getDisposition() |
SchedulerStateImpl |
getGroup() |
String |
getHostName() |
int |
getId() |
String |
getLabel()
Label for this task displayed in log messages.
|
LaunchSpec |
getLaunchSpec() |
String |
getName() |
TaskState |
getState() |
Task.TrackingState |
getTrackingState() |
int |
getTryCount() |
boolean |
isCancelled() |
boolean |
isFailed() |
boolean |
isLive() |
void |
reset()
Reset the task state in preparation for a retry.
|
void |
resetTrackingState() |
boolean |
retryable() |
void |
setGroup(SchedulerStateImpl taskGroup) |
void |
setTrackingState(Task.TrackingState tState) |
String |
toString() |
long |
uptime() |
public static final long MAX_CANCELLATION_TIME
public final int taskId
public final Scheduler scheduler
public TaskSpec taskSpec
public SchedulerStateImpl taskGroup
protected Task.TrackingState trackingState
public org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest containerRequest
public org.apache.hadoop.yarn.api.records.Container container
protected TaskState state
protected boolean cancelled
public Task.Disposition disposition
public Throwable error
public int tryCount
public org.apache.hadoop.yarn.api.records.ContainerStatus completionStatus
public long launchTime
public long stateStartTime
public long completionTime
public void resetTrackingState()
public int getId()
public ContainerRequestSpec getContainerSpec()
public LaunchSpec getLaunchSpec()
public TaskState getState()
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public org.apache.hadoop.yarn.api.records.Container getContainer()
public int getTryCount()
public boolean isFailed()
public Task.Disposition getDisposition()
public SchedulerStateImpl getGroup()
public void setGroup(SchedulerStateImpl taskGroup)
public boolean retryable()
public boolean isCancelled()
public void reset()
public long uptime()
public String getHostName()
public Task.TrackingState getTrackingState()
public boolean isLive()
public void cancel()
public Task copy()
public String getName()
public String getLabel()
public void setTrackingState(Task.TrackingState tState)
Copyright © 1970 The Apache Software Foundation. All rights reserved.