@InterfaceAudience.Private @InterfaceStability.Unstable public class JobUnsuccessfulCompletionEvent extends Object implements HistoryEvent
Constructor and Description |
---|
JobUnsuccessfulCompletionEvent(JobID id,
long finishTime,
int succeededMaps,
int succeededReduces,
int failedMaps,
int failedReduces,
int killedMaps,
int killedReduces,
String status)
Create an event to record unsuccessful completion (killed/failed) of jobs
|
JobUnsuccessfulCompletionEvent(JobID id,
long finishTime,
int succeededMaps,
int succeededReduces,
int failedMaps,
int failedReduces,
int killedMaps,
int killedReduces,
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 |
getFailedMaps()
Get the number of failed maps
|
int |
getFailedReduces()
Get the number of failed reduces
|
long |
getFinishTime()
Get the job finish time
|
JobID |
getJobId()
Get the Job ID
|
int |
getKilledMaps()
Get the number of killed maps
|
int |
getKilledReduces()
Get the number of killed reduces
|
String |
getStatus()
Get the status
|
int |
getSucceededMaps()
Get the number of succeeded maps
|
int |
getSucceededReduces()
Get the number of succeeded reduces
|
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 succeededMaps, int succeededReduces, int failedMaps, int failedReduces, int killedMaps, int killedReduces, String status)
id
- Job IDfinishTime
- Finish time of the jobsucceededMaps
- Number of succeeded mapssucceededReduces
- Number of succeeded reducesfailedMaps
- Number of failed mapsfailedReduces
- Number of failed reduceskilledMaps
- Number of killed mapskilledReduces
- Number of killed reducesstatus
- Status of the jobpublic JobUnsuccessfulCompletionEvent(JobID id, long finishTime, int succeededMaps, int succeededReduces, int failedMaps, int failedReduces, int killedMaps, int killedReduces, String status, Iterable<String> diagnostics)
id
- Job IDfinishTime
- Finish time of the jobsucceededMaps
- Number of finished mapssucceededReduces
- Number of finished reducesfailedMaps
- Number of failed mapsfailedReduces
- Number of failed reduceskilledMaps
- Number of killed mapskilledReduces
- Number of killed reducesstatus
- Status of the jobdiagnostics
- job runtime diagnosticspublic Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object datum)
HistoryEvent
setDatum
in interface HistoryEvent
public JobID getJobId()
public long getFinishTime()
public int getSucceededMaps()
public int getSucceededReduces()
public int getFailedMaps()
public int getFailedReduces()
public int getKilledMaps()
public int getKilledReduces()
public String getStatus()
public EventType getEventType()
getEventType
in interface HistoryEvent
public String getDiagnostics()
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 © 2008–2022 Apache Software Foundation. All rights reserved.