| Modifier and Type | Class and Description |
|---|---|
class |
Task.TaskReporter.DiskLimitCheck
disk limit checker, runs in separate thread when activated.
|
class |
Task.TaskReporter.TaskLimitException
exception thrown when the task exceeds some configured limits.
|
| Constructor and Description |
|---|
TaskReporter(org.apache.hadoop.util.Progress taskProgress,
TaskUmbilicalProtocol umbilical) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTaskLimits()
check the counters to see whether the task has exceeded any configured
limits.
|
Counters.Counter |
getCounter(Enum<?> name)
Get the
Counters.Counter of the given group with the given name. |
Counters.Counter |
getCounter(String group,
String name)
Get the
Counters.Counter of the given group with the given name. |
InputSplit |
getInputSplit()
Get the
InputSplit object for a map. |
float |
getProgress()
Get the current progress.
|
void |
incrCounter(Enum key,
long amount)
Increments the counter identified by the key, which can be of
any
Enum type, by the specified amount. |
void |
incrCounter(String group,
String counter,
long amount)
Increments the counter identified by the group and counter name
by the specified amount.
|
void |
progress() |
void |
run()
The communication thread handles communication with the parent (Task
Tracker).
|
void |
setInputSplit(InputSplit split) |
void |
setProgress(float progress) |
void |
setStatus(String status)
Set the status description for the task.
|
void |
startCommunicationThread() |
void |
startDiskLimitCheckerThreadIfNeeded() |
void |
stopCommunicationThread() |
public TaskReporter(org.apache.hadoop.util.Progress taskProgress,
TaskUmbilicalProtocol umbilical)
public void setStatus(String status)
ReportersetStatus in interface ReportersetStatus in class StatusReporterstatus - brief description of the current status.public void setProgress(float progress)
public float getProgress()
StatusReportergetProgress in interface ReportergetProgress in class StatusReporterpublic void progress()
progress in interface org.apache.hadoop.util.Progressableprogress in class StatusReporterpublic Counters.Counter getCounter(String group, String name)
ReporterCounters.Counter of the given group with the given name.getCounter in interface ReportergetCounter in class StatusReportergroup - counter groupname - counter nameCounter of the given group/name.public Counters.Counter getCounter(Enum<?> name)
ReporterCounters.Counter of the given group with the given name.getCounter in interface ReportergetCounter in class StatusReportername - counter nameCounter of the given group/name.public void incrCounter(Enum key, long amount)
ReporterEnum type, by the specified amount.incrCounter in interface Reporterkey - key to identify the counter to be incremented. The key can be
be any Enum.amount - A non-negative amount by which the counter is to
be incremented.public void incrCounter(String group, String counter, long amount)
ReporterincrCounter in interface Reportergroup - name to identify the group of the counter to be incremented.counter - name to identify the counter within the group.amount - A non-negative amount by which the counter is to
be incremented.public void setInputSplit(InputSplit split)
public InputSplit getInputSplit() throws UnsupportedOperationException
ReporterInputSplit object for a map.getInputSplit in interface ReporterInputSplit that the map is reading from.UnsupportedOperationException - if called outside a mapperprotected void checkTaskLimits()
throws Task.TaskReporter.TaskLimitException
public void run()
public void startCommunicationThread()
public void startDiskLimitCheckerThreadIfNeeded()
public void stopCommunicationThread()
throws InterruptedException
InterruptedExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.