@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()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object odatum)
HistoryEvent
setDatum
in interface HistoryEvent
public 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 HistoryEvent
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent toTimelineEvent()
HistoryEvent
toTimelineEvent
in interface HistoryEvent
public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> getTimelineMetrics()
HistoryEvent
getTimelineMetrics
in interface HistoryEvent
Copyright © 2019 Apache Software Foundation. All Rights Reserved.