| Constructor and Description |
|---|
ConfigUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLink(Configuration conf,
String mountTableName,
String src,
URI target)
Add a link to the config for the specified mount table
|
static void |
addLink(Configuration conf,
String src,
URI target)
Add a link to the config for the default mount table
|
static String |
getConfigViewFsPrefix()
Get the config variable prefix for the default mount table
|
static String |
getConfigViewFsPrefix(String mountTableName)
Get the config variable prefix for the specified mount table
|
static String |
getHomeDirValue(Configuration conf)
Get the value of the home dir conf value for default mount table
|
static String |
getHomeDirValue(Configuration conf,
String mountTableName)
Get the value of the home dir conf value for specfied mount table
|
static void |
setHomeDirConf(Configuration conf,
String homedir)
Add config variable for homedir for default mount table
|
static void |
setHomeDirConf(Configuration conf,
String mountTableName,
String homedir)
Add config variable for homedir the specified mount table
|
public static String getConfigViewFsPrefix(String mountTableName)
mountTableName - - the name of the mount tablepublic static String getConfigViewFsPrefix()
public static void addLink(Configuration conf, String mountTableName, String src, URI target)
conf - - add the link to this confmountTableName - src - - the src path nametarget - - the target URI linkpublic static void addLink(Configuration conf, String src, URI target)
conf - - add the link to this confsrc - - the src path nametarget - - the target URI linkpublic static void setHomeDirConf(Configuration conf, String homedir)
conf - - add to this confhomedir - - the home dir path starting with slashpublic static void setHomeDirConf(Configuration conf, String mountTableName, String homedir)
conf - - add to this confhomedir - - the home dir path starting with slashpublic static String getHomeDirValue(Configuration conf)
conf - - from this confpublic static String getHomeDirValue(Configuration conf, String mountTableName)
conf - - from this confmountTableName - - the mount tableCopyright © 2019 Apache Software Foundation. All Rights Reserved.