Class TaskAttemptFailEvent
java.lang.Object
org.apache.hadoop.yarn.event.AbstractEvent<TaskAttemptEventType>
org.apache.hadoop.mapreduce.v2.app.job.event.TaskAttemptEvent
org.apache.hadoop.mapreduce.v2.app.job.event.TaskAttemptFailEvent
- All Implemented Interfaces:
org.apache.hadoop.yarn.event.Event<TaskAttemptEventType>
-
Constructor Summary
ConstructorsConstructorDescriptionTaskAttemptFailEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id) Create a new TaskAttemptFailEvent, with task fastFail disabled.TaskAttemptFailEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id, boolean fastFail) Create a new TaskAttemptFailEvent. -
Method Summary
Methods inherited from class org.apache.hadoop.mapreduce.v2.app.job.event.TaskAttemptEvent
getTaskAttemptIDMethods inherited from class org.apache.hadoop.yarn.event.AbstractEvent
getTimestamp, getType, toString
-
Constructor Details
-
TaskAttemptFailEvent
public TaskAttemptFailEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id) Create a new TaskAttemptFailEvent, with task fastFail disabled.- Parameters:
id- the id of the task attempt
-
TaskAttemptFailEvent
public TaskAttemptFailEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id, boolean fastFail) Create a new TaskAttemptFailEvent.- Parameters:
id- the id of the task attemptfastFail- should the task fastFail or not.
-
-
Method Details
-
isFastFail
public boolean isFastFail()Check if task should fast fail or retry- Returns:
- boolean value where true indicates the task should not retry
-