public class ConfigurationUtil extends Object
Constructor and Description |
---|
ConfigurationUtil() |
Modifier and Type | Method and Description |
---|---|
static Properties |
expandForAlternativeNames(String name,
String value)
Returns Properties containing alternative names of given property and same values - can be used to solve deprecations
|
static Properties |
getLocalFSProperties() |
static void |
mergeConf(org.apache.hadoop.conf.Configuration origConf,
org.apache.hadoop.conf.Configuration replaceConf) |
static void |
replaceConfigForLocalMode(org.apache.hadoop.conf.Configuration configuration) |
static org.apache.hadoop.conf.Configuration |
toConfiguration(Properties properties) |
static org.apache.hadoop.conf.Configuration |
toConfiguration(Properties properties,
boolean loadDefaults) |
static Properties |
toProperties(org.apache.hadoop.conf.Configuration configuration) |
public static org.apache.hadoop.conf.Configuration toConfiguration(Properties properties)
public static org.apache.hadoop.conf.Configuration toConfiguration(Properties properties, boolean loadDefaults)
public static Properties toProperties(org.apache.hadoop.conf.Configuration configuration)
public static void mergeConf(org.apache.hadoop.conf.Configuration origConf, org.apache.hadoop.conf.Configuration replaceConf)
origConf
- replaceConf
- public static Properties getLocalFSProperties()
public static void replaceConfigForLocalMode(org.apache.hadoop.conf.Configuration configuration)
public static Properties expandForAlternativeNames(String name, String value)
Copyright © 2007-2017 The Apache Software Foundation