public class MapRedUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_SYSTEM_NAME |
| Constructor and Description |
|---|
MapRedUtil() |
| Modifier and Type | Method and Description |
|---|---|
static FileSpec |
checkLeafIsStore(PhysicalPlan plan,
PigContext pigContext) |
static void |
copyTmpFileConfigurationValues(org.apache.hadoop.conf.Configuration fromConf,
org.apache.hadoop.conf.Configuration toConf) |
static List<org.apache.hadoop.fs.FileStatus> |
getAllFileRecursively(List<org.apache.hadoop.fs.FileStatus> files,
org.apache.hadoop.conf.Configuration conf)
Get all files recursively from the given list of files
|
static List<List<org.apache.hadoop.mapreduce.InputSplit>> |
getCombinePigSplits(List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits,
long maxCombinedSplitSize,
org.apache.hadoop.conf.Configuration conf) |
String |
inputSplitToString(org.apache.hadoop.mapreduce.InputSplit[] splits) |
static <E> Map<E,Pair<Integer,Integer>> |
loadPartitionFileFromLocalCache(String keyDistFile,
Integer[] totalReducers,
byte keyType,
org.apache.hadoop.conf.Configuration mapConf)
Loads the key distribution sampler file
|
static void |
setupUDFContext(org.apache.hadoop.conf.Configuration job) |
public static final String FILE_SYSTEM_NAME
public static <E> Map<E,Pair<Integer,Integer>> loadPartitionFileFromLocalCache(String keyDistFile, Integer[] totalReducers, byte keyType, org.apache.hadoop.conf.Configuration mapConf) throws IOException
keyDistFile - the name for the distribution filetotalReducers - gets set to the total number of reducers as found in the dist filekeyType - Type of the key to be stored in the return map. It currently treats Tuple as a special case.IOExceptionpublic static void copyTmpFileConfigurationValues(org.apache.hadoop.conf.Configuration fromConf,
org.apache.hadoop.conf.Configuration toConf)
public static void setupUDFContext(org.apache.hadoop.conf.Configuration job)
throws IOException
IOExceptionpublic static FileSpec checkLeafIsStore(PhysicalPlan plan, PigContext pigContext) throws ExecException
ExecExceptionpublic static List<org.apache.hadoop.fs.FileStatus> getAllFileRecursively(List<org.apache.hadoop.fs.FileStatus> files, org.apache.hadoop.conf.Configuration conf) throws IOException
files - a list of FileStatusconf - the configuration objectIOExceptionpublic static List<List<org.apache.hadoop.mapreduce.InputSplit>> getCombinePigSplits(List<org.apache.hadoop.mapreduce.InputSplit> oneInputSplits, long maxCombinedSplitSize, org.apache.hadoop.conf.Configuration conf) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String inputSplitToString(org.apache.hadoop.mapreduce.InputSplit[] splits) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007-2012 The Apache Software Foundation