public class HadoopConfigUtils extends Object
Configuration.| Constructor and Description |
|---|
HadoopConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.conf.Configuration |
createHadoopConf(Properties props)
Creates a Hadoop
Configuration instance with the properties. |
static boolean |
getBooleanWithAltKeys(org.apache.hadoop.conf.Configuration conf,
ConfigProperty<?> configProperty)
Gets the boolean value for a
ConfigProperty config from Hadoop configuration. |
static Option<String> |
getRawValueWithAltKeys(org.apache.hadoop.conf.Configuration conf,
ConfigProperty<?> configProperty)
Gets the raw value for a
ConfigProperty config from Hadoop configuration. |
public static org.apache.hadoop.conf.Configuration createHadoopConf(Properties props)
Configuration instance with the properties.props - Properties instance.Configuration instance.public static Option<String> getRawValueWithAltKeys(org.apache.hadoop.conf.Configuration conf, ConfigProperty<?> configProperty)
ConfigProperty config from Hadoop configuration. The key and
alternative keys are used to fetch the config.conf - Configs in Hadoop Configuration.configProperty - ConfigProperty config to fetch.Option of value if the config exists; empty Option otherwise.public static boolean getBooleanWithAltKeys(org.apache.hadoop.conf.Configuration conf,
ConfigProperty<?> configProperty)
ConfigProperty config from Hadoop configuration. The key and
alternative keys are used to fetch the config. The default value of ConfigProperty
config, if exists, is returned if the config is not found in the configuration.conf - Configs in Hadoop Configuration.configProperty - ConfigProperty config to fetch.ConfigProperty config; false otherwise.Copyright © 2024 The Apache Software Foundation. All rights reserved.