@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskAttemptUnsuccessfulCompletionEvent extends Object implements HistoryEvent
Constructor and Description |
---|
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
TaskType taskType,
String status,
long finishTime,
String hostname,
int port,
String rackName,
String error,
Counters counters,
int[][] allSplits) |
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
TaskType taskType,
String status,
long finishTime,
String hostname,
int port,
String rackName,
String error,
Counters counters,
int[][] allSplits,
long startTs)
Create an event to record the unsuccessful completion of attempts.
|
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
TaskType taskType,
String status,
long finishTime,
String hostname,
int port,
String rackName,
String error,
int[][] allSplits) |
TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id,
TaskType taskType,
String status,
long finishTime,
String hostname,
String error)
Deprecated.
please use the constructor with an additional
argument, an array of splits arrays instead. See
ProgressSplitsBlock
for an explanation of the meaning of that parameter.
Create an event to record the unsuccessful completion of attempts |
Modifier and Type | Method and Description |
---|---|
int[] |
getClockSplits() |
int[] |
getCpuUsages() |
Object |
getDatum()
Return the Avro datum wrapped by this.
|
String |
getError()
Gets the error string.
|
EventType |
getEventType()
Gets the event type.
|
long |
getFinishTime()
Gets the finish time.
|
String |
getHostname()
Gets the name of the host where the attempt executed.
|
int[] |
getPhysMemKbytes() |
int |
getPort()
Gets the rpc port for the host where the attempt executed.
|
String |
getRackName()
Gets the rack name of the node where the attempt ran.
|
long |
getStartTime()
Gets the task attempt start time to be used while publishing to ATSv2.
|
TaskAttemptID |
getTaskAttemptId()
Gets the attempt id.
|
TaskID |
getTaskId()
Gets the task id.
|
String |
getTaskStatus()
Gets the task attempt 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.
|
int[] |
getVMemKbytes() |
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 TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id, TaskType taskType, String status, long finishTime, String hostname, int port, String rackName, String error, Counters counters, int[][] allSplits, long startTs)
id
- Attempt IDtaskType
- Type of the taskstatus
- Status of the attemptfinishTime
- Finish time of the attempthostname
- Name of the host where the attempt executedport
- rpc port for for the trackerrackName
- Name of the rack where the attempt executederror
- Error stringcounters
- Counters for the attemptallSplits
- the "splits", or a pixelated graph of various
measurable worker node state variables against progress.
Currently there are four; wallclock time, CPU time,
virtual memory and physical memory.startTs
- Task start time to be used for writing entity to ATSv2.public TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id, TaskType taskType, String status, long finishTime, String hostname, int port, String rackName, String error, Counters counters, int[][] allSplits)
public TaskAttemptUnsuccessfulCompletionEvent(TaskAttemptID id, TaskType taskType, String status, long finishTime, String hostname, String error)
ProgressSplitsBlock
for an explanation of the meaning of that parameter.
Create an event to record the unsuccessful completion of attemptsid
- Attempt IDtaskType
- Type of the taskstatus
- Status of the attemptfinishTime
- Finish time of the attempthostname
- Name of the host where the attempt executederror
- Error stringpublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object odatum)
HistoryEvent
setDatum
in interface HistoryEvent
public TaskID getTaskId()
public TaskType getTaskType()
public TaskAttemptID getTaskAttemptId()
public long getFinishTime()
public long getStartTime()
public String getHostname()
public int getPort()
public String getRackName()
public String getError()
public String getTaskStatus()
public EventType getEventType()
getEventType
in interface HistoryEvent
public int[] getClockSplits()
public int[] getCpuUsages()
public int[] getVMemKbytes()
public int[] getPhysMemKbytes()
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 © 2018 Apache Software Foundation. All Rights Reserved.