public class ConfigurationFactory extends ConfigurationProvider
Configuration
s with system defaults.Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationFactory.Preferences
Preferences for
ConfigurationFactory . |
Modifier and Type | Field and Description |
---|---|
static String |
KEY_EXPLICIT_HADOOP_COMMAND
Deprecated.
|
static String |
KEY_EXPLICIT_HADOOP_CONF
Deprecated.
|
static String |
KEY_LOCAL_FILE_SYSTEM
The system property key of
LocalFileSystem implementation class name. |
Constructor and Description |
---|
ConfigurationFactory(ConfigurationFactory.Preferences preferences)
Creates a new instance.
|
ConfigurationFactory(URL defaultConfigPath)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure(org.apache.hadoop.conf.Configuration configuration)
Configures before
ConfigurationProvider.newInstance() returns the configuration object. |
static ConfigurationFactory |
getDefault()
Returns a default factory which refers the System Hadoop configuration path.
|
File |
getHadoopCommand()
Returns the Hadoop command path for this configuration.
|
findHadoopCommand, findHadoopCommand, getConfigurationPath, newInstance
public static final String KEY_LOCAL_FILE_SYSTEM
LocalFileSystem
implementation class name.@Deprecated public static final String KEY_EXPLICIT_HADOOP_CONF
@Deprecated public static final String KEY_EXPLICIT_HADOOP_COMMAND
public ConfigurationFactory(URL defaultConfigPath)
defaultConfigPath
- the default configuration pathgetDefault()
public ConfigurationFactory(ConfigurationFactory.Preferences preferences)
preferences
- the preferences for this instancegetDefault()
public static ConfigurationFactory getDefault()
If Hadoop installation is not found in your system, this returns a factory which use the current context classloader.
public File getHadoopCommand()
null
if it is not foundprotected void configure(org.apache.hadoop.conf.Configuration configuration)
ConfigurationProvider
ConfigurationProvider.newInstance()
returns the configuration object.configure
in class ConfigurationProvider
configuration
- the configurationCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.