public class JobUtils extends java.lang.Object
| Constructor and Description |
|---|
JobUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileToClassPath(org.apache.hadoop.fs.Path file,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs)
This method provides a wrapper around hadoop 0.20/1.x and 0.23/2.x implementations.
|
static void |
normalizeAppPath(java.lang.String user,
java.lang.String group,
org.apache.hadoop.conf.Configuration conf)
Normalize appPath in job conf with the provided user/group - If it's not jobs via proxy submission, after
normalization appPath always points to job's Xml definition file.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseChangeValue(java.lang.String changeValue)
This Function will parse the value of the changed values in key value manner.
|
public JobUtils()
public static void normalizeAppPath(java.lang.String user, java.lang.String group, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
user - usergroup - groupconf - job configuration.java.io.IOException - thrown if normalization can not be done properly.public static java.util.Map<java.lang.String,java.lang.String> parseChangeValue(java.lang.String changeValue) throws CommandException
changeValue - change value.CommandException - thrown if changeValue cannot be parsed properly.public static void addFileToClassPath(org.apache.hadoop.fs.Path file, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs) throws java.io.IOException
file - Path of the file to be addedconf - Configuration that contains the classpath settingfs - FileSystem with respect to which path should be interpreted (may be null)java.io.IOExceptionCopyright © 2017 Apache Software Foundation. All Rights Reserved.