public class TezUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.mapred.TaskAttemptContext |
enrichContextWithAttemptWrapper(org.apache.hadoop.mapred.TaskAttemptContext taskAttemptContext)
Creates a new taskAttemptContext by replacing the taskAttemptID with a wrapped object.
|
static org.apache.hadoop.mapred.JobContext |
enrichContextWithVertexId(org.apache.hadoop.mapred.JobContext jobContext)
If the Tez vertex id is present in config, creates a new jobContext by appending the Tez vertex
id to the jobID.
|
static org.apache.hadoop.mapred.TaskAttemptID |
taskAttemptWrapper(org.apache.hadoop.mapred.JobConf jc) |
static org.apache.hadoop.mapred.TaskAttemptID |
taskAttemptWrapper(org.apache.hadoop.mapred.TaskAttemptID attemptID) |
public static org.apache.hadoop.mapred.JobContext enrichContextWithVertexId(org.apache.hadoop.mapred.JobContext jobContext)
TaskAttemptWrapper
.jobContext
- original jobContext to be enrichedpublic static org.apache.hadoop.mapred.TaskAttemptContext enrichContextWithAttemptWrapper(org.apache.hadoop.mapred.TaskAttemptContext taskAttemptContext)
TaskAttemptWrapper
.taskAttemptContext
- original taskAttemptContext to be enrichedpublic static org.apache.hadoop.mapred.TaskAttemptID taskAttemptWrapper(org.apache.hadoop.mapred.TaskAttemptID attemptID)
public static org.apache.hadoop.mapred.TaskAttemptID taskAttemptWrapper(org.apache.hadoop.mapred.JobConf jc)