@InterfaceAudience.Private
public abstract class MRTask
extends org.apache.tez.runtime.api.AbstractLogicalIOProcessor
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.mapreduce.OutputCommitter |
committer |
protected org.apache.hadoop.mapred.JobConf |
jobConf |
protected org.apache.hadoop.mapred.JobContext |
jobContext |
protected SecretKey |
jobTokenSecret |
protected MRTaskReporter |
mrReporter |
protected org.apache.tez.runtime.api.ProcessorContext |
processorContext |
protected org.apache.hadoop.util.Progress |
progress |
protected org.apache.hadoop.mapred.TaskAttemptContext |
taskAttemptContext |
protected org.apache.hadoop.mapred.TaskAttemptID |
taskAttemptId |
protected boolean |
useNewApi |
| Constructor and Description |
|---|
MRTask(org.apache.tez.runtime.api.ProcessorContext processorContext,
boolean isMap) |
| Modifier and Type | Method and Description |
|---|---|
protected static <INKEY,INVALUE,OUTKEY,OUTVALUE> |
createReduceContext(org.apache.hadoop.mapreduce.Reducer<INKEY,INVALUE,OUTKEY,OUTVALUE> reducer,
org.apache.hadoop.conf.Configuration job,
org.apache.hadoop.mapred.TaskAttemptID taskId,
org.apache.tez.runtime.library.common.sort.impl.TezRawKeyValueIterator rIter,
org.apache.hadoop.mapreduce.Counter inputKeyCounter,
org.apache.hadoop.mapreduce.Counter inputValueCounter,
org.apache.hadoop.mapreduce.RecordWriter<OUTKEY,OUTVALUE> output,
org.apache.hadoop.mapreduce.OutputCommitter committer,
org.apache.hadoop.mapreduce.StatusReporter reporter,
org.apache.hadoop.io.RawComparator<INKEY> comparator,
Class<INKEY> keyClass,
Class<INVALUE> valueClass) |
void |
done() |
org.apache.hadoop.mapred.JobConf |
getConf() |
org.apache.tez.common.counters.TezCounters |
getCounters() |
static List<org.apache.hadoop.fs.FileSystem.Statistics> |
getFsStatistics(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Gets a handle to the Statistics instance based on the scheme associated
with path.
|
org.apache.hadoop.mapred.JobContext |
getJobContext() |
MRTaskReporter |
getMRReporter() |
String |
getOutputName() |
org.apache.hadoop.mapreduce.TaskAttemptContext |
getTaskAttemptContext() |
org.apache.hadoop.mapred.TaskAttemptID |
getTaskAttemptId() |
org.apache.tez.runtime.api.ProcessorContext |
getUmbilical() |
void |
initialize() |
void |
initTask(org.apache.tez.runtime.api.LogicalOutput output) |
void |
localizeConfiguration(org.apache.hadoop.mapred.JobConf jobConf) |
static String |
normalizeStatus(String status,
org.apache.hadoop.conf.Configuration conf) |
void |
setConf(org.apache.hadoop.mapred.JobConf jobConf) |
void |
statusUpdate()
Send a status update to the task tracker
|
void |
taskCleanup() |
void |
waitBeforeCompletion(MRTaskReporter reporter) |
abort, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.apache.hadoop.mapred.JobConf jobConf
protected org.apache.hadoop.mapred.JobContext jobContext
protected org.apache.hadoop.mapred.TaskAttemptContext taskAttemptContext
protected org.apache.hadoop.mapreduce.OutputCommitter committer
protected org.apache.tez.runtime.api.ProcessorContext processorContext
protected org.apache.hadoop.mapred.TaskAttemptID taskAttemptId
protected org.apache.hadoop.util.Progress progress
protected SecretKey jobTokenSecret
protected MRTaskReporter mrReporter
protected boolean useNewApi
public MRTask(org.apache.tez.runtime.api.ProcessorContext processorContext,
boolean isMap)
public void initialize()
throws IOException,
InterruptedException
initialize in interface org.apache.tez.runtime.api.ProcessorFrameworkInterfaceinitialize in class org.apache.tez.runtime.api.AbstractLogicalIOProcessorIOExceptionInterruptedExceptionpublic org.apache.tez.runtime.api.ProcessorContext getUmbilical()
public void initTask(org.apache.tez.runtime.api.LogicalOutput output)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic MRTaskReporter getMRReporter()
public org.apache.tez.common.counters.TezCounters getCounters()
public void setConf(org.apache.hadoop.mapred.JobConf jobConf)
public org.apache.hadoop.mapred.JobConf getConf()
@InterfaceAudience.Private public static List<org.apache.hadoop.fs.FileSystem.Statistics> getFsStatistics(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
path - the path.conf - the configuration to extract the scheme from if not part of
the path.IOException@InterfaceAudience.Private public String getOutputName()
public void waitBeforeCompletion(MRTaskReporter reporter) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void done()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void statusUpdate()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic static String normalizeStatus(String status, org.apache.hadoop.conf.Configuration conf)
protected static <INKEY,INVALUE,OUTKEY,OUTVALUE> org.apache.hadoop.mapreduce.Reducer.Context createReduceContext(org.apache.hadoop.mapreduce.Reducer<INKEY,INVALUE,OUTKEY,OUTVALUE> reducer,
org.apache.hadoop.conf.Configuration job,
org.apache.hadoop.mapred.TaskAttemptID taskId,
org.apache.tez.runtime.library.common.sort.impl.TezRawKeyValueIterator rIter,
org.apache.hadoop.mapreduce.Counter inputKeyCounter,
org.apache.hadoop.mapreduce.Counter inputValueCounter,
org.apache.hadoop.mapreduce.RecordWriter<OUTKEY,OUTVALUE> output,
org.apache.hadoop.mapreduce.OutputCommitter committer,
org.apache.hadoop.mapreduce.StatusReporter reporter,
org.apache.hadoop.io.RawComparator<INKEY> comparator,
Class<INKEY> keyClass,
Class<INVALUE> valueClass)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void taskCleanup()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void localizeConfiguration(org.apache.hadoop.mapred.JobConf jobConf)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic org.apache.hadoop.mapreduce.TaskAttemptContext getTaskAttemptContext()
public org.apache.hadoop.mapred.JobContext getJobContext()
public org.apache.hadoop.mapred.TaskAttemptID getTaskAttemptId()
Copyright © 2017 Apache Software Foundation. All rights reserved.