@InterfaceAudience.Private @InterfaceStability.Unstable public class JobUnsuccessfulCompletionEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
JobUnsuccessfulCompletionEvent(JobID id,
long finishTime,
int finishedMaps,
int finishedReduces,
String status)
Create an event to record unsuccessful completion (killed/failed) of jobs
|
JobUnsuccessfulCompletionEvent(JobID id,
long finishTime,
int finishedMaps,
int finishedReduces,
String status,
Iterable<String> diagnostics)
Create an event to record unsuccessful completion (killed/failed) of jobs
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
String |
getDiagnostics()
Retrieves diagnostics information preserved in the history file
|
EventType |
getEventType()
Get the event type
|
int |
getFinishedMaps()
Get the number of finished maps
|
int |
getFinishedReduces()
Get the number of finished reduces
|
long |
getFinishTime()
Get the job finish time
|
JobID |
getJobId()
Get the Job ID
|
String |
getStatus()
Get the status
|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
getTimelineMetrics()
Counters or Metrics if any else return null.
|
void |
setDatum(Object datum)
Set the Avro datum wrapped by this.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEvent |
toTimelineEvent()
Map HistoryEvent to TimelineEvent.
|
public JobUnsuccessfulCompletionEvent(JobID id, long finishTime, int finishedMaps, int finishedReduces, String status)
id - Job IDfinishTime - Finish time of the jobfinishedMaps - Number of finished mapsfinishedReduces - Number of finished reducesstatus - Status of the jobpublic JobUnsuccessfulCompletionEvent(JobID id, long finishTime, int finishedMaps, int finishedReduces, String status, Iterable<String> diagnostics)
id - Job IDfinishTime - Finish time of the jobfinishedMaps - Number of finished mapsfinishedReduces - Number of finished reducesstatus - Status of the jobdiagnostics - job runtime diagnosticspublic Object getDatum()
HistoryEventgetDatum in interface HistoryEventpublic void setDatum(Object datum)
HistoryEventsetDatum in interface HistoryEventpublic JobID getJobId()
public long getFinishTime()
public int getFinishedMaps()
public int getFinishedReduces()
public String getStatus()
public EventType getEventType()
getEventType in interface HistoryEventpublic String getDiagnostics()
public 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 © 2022 Apache Software Foundation. All rights reserved.