@InterfaceAudience.Private @InterfaceStability.Unstable public class MapAttemptFinishedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
MapAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long mapFinishTime,
long finishTime,
String hostname,
int port,
String rackName,
String state,
Counters counters,
int[][] allSplits) |
MapAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long mapFinishTime,
long finishTime,
String hostname,
int port,
String rackName,
String state,
Counters counters,
int[][] allSplits,
long startTs)
Create an event for successful completion of map attempts.
|
MapAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long mapFinishTime,
long finishTime,
String hostname,
String state,
Counters counters)
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 for successful completion of map attempts |
Modifier and Type | Method and Description |
---|---|
TaskAttemptID |
getAttemptId()
Gets the attempt id.
|
int[] |
getClockSplits() |
int[] |
getCpuUsages() |
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Gets the event type.
|
long |
getFinishTime()
Gets the attempt finish time.
|
String |
getHostname()
Gets the host name.
|
long |
getMapFinishTime()
Gets the map phase finish time.
|
int[] |
getPhysMemKbytes() |
int |
getPort()
Gets the tracker rpc port.
|
String |
getRackName()
Gets the rack name.
|
long |
getStartTime()
Gets the task attempt start time.
|
String |
getState()
Gets the attempt state string.
|
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.
|
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 MapAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long mapFinishTime, long finishTime, String hostname, int port, String rackName, String state, Counters counters, int[][] allSplits, long startTs)
id
- Task Attempt IDtaskType
- Type of the tasktaskStatus
- Status of the taskmapFinishTime
- Finish time of the map phasefinishTime
- Finish time of the attempthostname
- Name of the host where the map executedport
- RPC port for the tracker host.rackName
- Name of the rack where the map executedstate
- State string for the attemptcounters
- 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.
If you have no splits data, code null
for this
parameter.startTs
- Task start time to be used for writing entity to ATSv2.public MapAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long mapFinishTime, long finishTime, String hostname, int port, String rackName, String state, Counters counters, int[][] allSplits)
@Deprecated public MapAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long mapFinishTime, long finishTime, String hostname, String state, Counters counters)
ProgressSplitsBlock
for an explanation of the meaning of that parameter.
Create an event for successful completion of map attemptsid
- Task Attempt IDtaskType
- Type of the tasktaskStatus
- Status of the taskmapFinishTime
- Finish time of the map phasefinishTime
- Finish time of the attempthostname
- Name of the host where the map executedstate
- State string for the attemptcounters
- Counters for the attemptpublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object oDatum)
HistoryEvent
setDatum
in interface HistoryEvent
public TaskID getTaskId()
public TaskAttemptID getAttemptId()
public TaskType getTaskType()
public String getTaskStatus()
public long getMapFinishTime()
public long getFinishTime()
public long getStartTime()
public String getHostname()
public int getPort()
public String getRackName()
public String getState()
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.