public class HadoopUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HadoopUtils.HadoopConfigLoader
Specifies the way of loading hadoop config.
|
Modifier and Type | Field and Description |
---|---|
static String |
HADOOP_CONF_ENV |
static ConfigOption<HadoopUtils.HadoopConfigLoader> |
HADOOP_CONF_LOADER |
static String |
HADOOP_HOME_ENV |
static ConfigOption<Boolean> |
HADOOP_LOAD_DEFAULT_CONFIG |
static String |
PATH_HADOOP_CONFIG
Path to Hadoop configuration.
|
Constructor and Description |
---|
HadoopUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addHadoopConfIfFound(org.apache.hadoop.conf.Configuration configuration,
String possibleHadoopConfPath,
Options options)
Search Hadoop configuration files in the given path, and add them to the configuration if
found.
|
static org.apache.hadoop.conf.Configuration |
getHadoopConfiguration(Options options) |
static void |
readHadoopXml(String xml,
org.apache.hadoop.conf.Configuration conf) |
public static final ConfigOption<HadoopUtils.HadoopConfigLoader> HADOOP_CONF_LOADER
public static final ConfigOption<Boolean> HADOOP_LOAD_DEFAULT_CONFIG
public static final String HADOOP_HOME_ENV
public static final String HADOOP_CONF_ENV
public static final String PATH_HADOOP_CONFIG
public static org.apache.hadoop.conf.Configuration getHadoopConfiguration(Options options)
public static boolean addHadoopConfIfFound(org.apache.hadoop.conf.Configuration configuration, String possibleHadoopConfPath, Options options)
public static void readHadoopXml(String xml, org.apache.hadoop.conf.Configuration conf)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.