@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskFailedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt) |
TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt,
Counters counters) |
TaskFailedEvent(TaskID id,
long finishTime,
TaskType taskType,
String error,
String status,
TaskAttemptID failedDueToAttempt,
Counters counters,
long startTs)
Create an event to record task failure.
|
| Modifier and Type | Method and Description |
|---|---|
Counters |
getCounters()
Gets task counters.
|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
String |
getError()
Gets the error string.
|
EventType |
getEventType()
Gets the event type.
|
TaskAttemptID |
getFailedAttemptID()
Gets the attempt id due to which the task failed.
|
long |
getFinishTime()
Gets the finish time of the attempt.
|
long |
getStartTime()
Gets the task start time to be reported to ATSv2.
|
TaskID |
getTaskId()
Gets the task id.
|
String |
getTaskStatus()
Gets the task status.
|
TaskType |
getTaskType()
Gets the task type.
|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
getTimelineMetrics()
Counters or Metrics if any else return null.
|
void |
setDatum(Object odatum)
Set the Avro datum wrapped by this.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent |
toTimelineEvent()
Map HistoryEvent to TimelineEvent.
|
public TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, String error, String status, TaskAttemptID failedDueToAttempt, Counters counters, long startTs)
id - Task IDfinishTime - Finish time of the tasktaskType - Type of the taskerror - Error Stringstatus - StatusfailedDueToAttempt - The attempt id due to which the task failedcounters - Counters for the taskstartTs - task start time.public TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, String error, String status, TaskAttemptID failedDueToAttempt, Counters counters)
public TaskFailedEvent(TaskID id, long finishTime, TaskType taskType, String error, String status, TaskAttemptID failedDueToAttempt)
public Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object odatum)
HistoryEventsetDatum in interface HistoryEventpublic TaskID getTaskId()
public String getError()
public long getFinishTime()
public long getStartTime()
public TaskType getTaskType()
public TaskAttemptID getFailedAttemptID()
public String getTaskStatus()
public Counters getCounters()
public EventType getEventType()
getEventType in interface HistoryEventpublic org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent toTimelineEvent()
HistoryEventtoTimelineEvent in interface HistoryEventpublic Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> getTimelineMetrics()
HistoryEventgetTimelineMetrics in interface HistoryEventCopyright © 2008–2022 Apache Software Foundation. All rights reserved.