public class DefaultSpeculator extends org.apache.hadoop.yarn.service.AbstractService implements Speculator
Speculator.EventType| Constructor and Description |
|---|
DefaultSpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context) |
DefaultSpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context,
org.apache.hadoop.yarn.Clock clock) |
DefaultSpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context,
TaskRuntimeEstimator estimator,
org.apache.hadoop.yarn.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpeculativeAttempt(org.apache.hadoop.mapreduce.v2.api.records.TaskId taskID) |
boolean |
eventQueueEmpty() |
void |
handle(SpeculatorEvent event) |
void |
handleAttempt(TaskAttemptStatusUpdateEvent.TaskAttemptStatus status) |
void |
scanForSpeculations() |
void |
start() |
protected void |
statusUpdate(TaskAttemptStatusUpdateEvent.TaskAttemptStatus reportedStatus,
long timestamp)
Absorbs one TaskAttemptStatus
|
void |
stop() |
public DefaultSpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context)
public DefaultSpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context,
org.apache.hadoop.yarn.Clock clock)
public DefaultSpeculator(org.apache.hadoop.conf.Configuration conf,
AppContext context,
TaskRuntimeEstimator estimator,
org.apache.hadoop.yarn.Clock clock)
public void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractServicepublic void handleAttempt(TaskAttemptStatusUpdateEvent.TaskAttemptStatus status)
handleAttempt in interface Speculatorpublic boolean eventQueueEmpty()
public void scanForSpeculations()
protected void statusUpdate(TaskAttemptStatusUpdateEvent.TaskAttemptStatus reportedStatus, long timestamp)
reportedStatus - the status report that we got from a task attempt
that we want to fold into the speculation data for this jobtimestamp - the time this status corresponds to. This matters
because statuses contain progress.protected void addSpeculativeAttempt(org.apache.hadoop.mapreduce.v2.api.records.TaskId taskID)
public void handle(SpeculatorEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<SpeculatorEvent>Copyright © 2014 Apache Software Foundation. All Rights Reserved.