Constructor and Description |
---|
TezUtil() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addResource(Map<String,LocalResource> localResources,
Map<String,String> environment,
String fileName,
FileStatus stats,
Path fullPath,
LocalResourceType type) |
static Map<Path,Path> |
addToClassPath(Configuration config,
String stagingRoot,
String resourceSubPath,
Collection<String> classpath,
LocalResourceType resourceType,
Map<String,LocalResource> localResources,
Map<String,String> environment) |
static JobConf |
asJobConf(Configuration configuration)
Attempting to localize all new JobConf calls
|
static org.apache.tez.dag.api.TezConfiguration |
createTezConf(Map<Object,Object> properties,
org.apache.tez.dag.api.TezConfiguration defaultJobconf) |
static UserGroupInformation |
getCurrentUser() |
static String |
getEdgeSinkID(org.apache.tez.runtime.api.LogicalOutput output,
Configuration configuration) |
static String |
getEdgeSourceID(org.apache.tez.runtime.api.LogicalInput input,
Configuration configuration) |
static Configuration |
getInputConfiguration(org.apache.tez.runtime.api.LogicalInput input) |
static Configuration |
getOutputConfiguration(org.apache.tez.runtime.api.LogicalOutput output) |
static void |
setMRProperties(org.apache.tez.runtime.api.ProcessorContext context,
Configuration config,
boolean isMapperOutput) |
static void |
setSourcePathForSplit(org.apache.tez.mapreduce.input.MRInput input,
org.apache.tez.mapreduce.lib.MRReader reader,
Configuration configuration) |
public TezUtil()
public static JobConf asJobConf(Configuration configuration)
configuration
- public static org.apache.tez.dag.api.TezConfiguration createTezConf(Map<Object,Object> properties, org.apache.tez.dag.api.TezConfiguration defaultJobconf)
public static UserGroupInformation getCurrentUser()
public static String getEdgeSourceID(org.apache.tez.runtime.api.LogicalInput input, Configuration configuration)
public static String getEdgeSinkID(org.apache.tez.runtime.api.LogicalOutput output, Configuration configuration)
public static Configuration getInputConfiguration(org.apache.tez.runtime.api.LogicalInput input)
public static Configuration getOutputConfiguration(org.apache.tez.runtime.api.LogicalOutput output)
public static void setSourcePathForSplit(org.apache.tez.mapreduce.input.MRInput input, org.apache.tez.mapreduce.lib.MRReader reader, Configuration configuration)
public static Map<Path,Path> addToClassPath(Configuration config, String stagingRoot, String resourceSubPath, Collection<String> classpath, LocalResourceType resourceType, Map<String,LocalResource> localResources, Map<String,String> environment)
protected static void addResource(Map<String,LocalResource> localResources, Map<String,String> environment, String fileName, FileStatus stats, Path fullPath, LocalResourceType type) throws IOException
IOException
public static void setMRProperties(org.apache.tez.runtime.api.ProcessorContext context, Configuration config, boolean isMapperOutput)
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.