public class ConfigurationProvider extends Object
Configuration
s with system defaults.Constructor and Description |
---|
ConfigurationProvider()
Creates a new instance.
|
ConfigurationProvider(URL defaultConfigPath)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure(org.apache.hadoop.conf.Configuration configuration)
Configures before
newInstance() returns the configuration object. |
static File |
findHadoopCommand()
Searches for the installed hadoop command.
|
static File |
findHadoopCommand(Map<String,String> environmentVariables)
Computes the default Hadoop command path.
|
static URL |
getConfigurationPath(Map<String,String> environmentVariables)
Computes the default Hadoop configuration path.
|
org.apache.hadoop.conf.Configuration |
newInstance()
Creates a new default configuration.
|
public ConfigurationProvider()
public ConfigurationProvider(URL defaultConfigPath)
defaultConfigPath
- the default configuration pathpublic static URL getConfigurationPath(Map<String,String> environmentVariables)
environmentVariables
- the current environment variablesnull
if the configuration path is not foundpublic static File findHadoopCommand()
null
if not foundpublic static File findHadoopCommand(Map<String,String> environmentVariables)
environmentVariables
- the current environment variablesnull
if the command path is not foundpublic org.apache.hadoop.conf.Configuration newInstance()
protected void configure(org.apache.hadoop.conf.Configuration configuration)
newInstance()
returns the configuration object.configuration
- the configurationCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.