public class EnvironmentFactoryBean extends Object implements InitializingBean, FactoryBean<Map<String,String>>
| Constructor and Description |
|---|
EnvironmentFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected Map<String,String> |
createEnvironment()
Creates the
Map to be returned from this factory bean. |
Map<String,String> |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setClasspath(String classpath)
Sets incoming classpath.
|
void |
setConfiguration(Configuration configuration)
Sets the yarn configuration.
|
void |
setDefaultMapreduceAppClasspath(String defaultMapreduceAppClasspath)
Sets the default mr app classpath.
|
void |
setDefaultYarnAppClasspath(String defaultYarnAppClasspath)
Sets the default yarn app classpath.
|
void |
setDelimiter(String delimiter)
Sets the delimiter used in a classpath.
|
void |
setIncludeBaseDirectory(boolean includeBaseDirectory)
If set to true a base directory entry will be added to
a 'CLASSPATH' environment variable.
|
void |
setIncludeLocalSystemEnv(boolean includeLocalSystemEnv)
If set to true properties from a
System.getenv() will
be included to environment settings. |
void |
setProperties(Properties properties)
Sets the configuration properties.
|
void |
setUseDefaultMapreduceClasspath(boolean useDefaultMapreduceClasspath)
If set to true a default 'mr' entries will be added to
a 'CLASSPATH' environment variable.
|
void |
setUseDefaultYarnClasspath(boolean useDefaultYarnClasspath)
If set to true a default 'yarn' entries will be added to
a 'CLASSPATH' environment variable.
|
public Class<?> getObjectType()
getObjectType in interface FactoryBean<Map<String,String>>public boolean isSingleton()
isSingleton in interface FactoryBean<Map<String,String>>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setIncludeLocalSystemEnv(boolean includeLocalSystemEnv)
System.getenv() will
be included to environment settings. Default value is true.includeLocalSystemEnv - flag to setpublic void setConfiguration(Configuration configuration)
configuration - the new yarn configurationprotected Map<String,String> createEnvironment()
Map to be returned from this factory bean.public void setProperties(Properties properties)
properties - The properties to set.public void setClasspath(String classpath)
classpath - the incoming classpath to setpublic void setDefaultYarnAppClasspath(String defaultYarnAppClasspath)
defaultYarnAppClasspath - the new default yarn app classpathpublic void setDefaultMapreduceAppClasspath(String defaultMapreduceAppClasspath)
defaultMapreduceAppClasspath - the new default mr app classpathpublic void setUseDefaultYarnClasspath(boolean useDefaultYarnClasspath)
useDefaultYarnClasspath - Flag telling if default yarn entries
should be added to classpathpublic void setUseDefaultMapreduceClasspath(boolean useDefaultMapreduceClasspath)
useDefaultMapreduceClasspath - Flag telling if default mr entries
should be added to classpathpublic void setIncludeBaseDirectory(boolean includeBaseDirectory)
includeBaseDirectory - Flag telling if base directory entry
should be added to classpathpublic void setDelimiter(String delimiter)
delimiter - delimiter to use in classpath