public interface EnvironmentClasspathConfigurer extends AnnotationConfigurerBuilder<YarnEnvironmentConfigurer>
AnnotationConfigurerBuilder
for configuring classpath environment variable.
Typically configuration is shown below.
@Configuration @EnableYarn(enable=Enable.APPMASTER) static class Config extends SpringYarnConfigurerAdapter { @Override public void configure(YarnEnvironmentConfigurer environment) throws Exception { environment .withClasspath() .includeBaseDirectory(true) .useDefaultYarnClasspath(true) .defaultYarnAppClasspath("my:cp:entries") .delimiter(":") .entries("entry1", "entry2") .entry("entry3"); } }
Modifier and Type | Method and Description |
---|---|
EnvironmentClasspathConfigurer |
delimiter(java.lang.String delimiter)
Specify a delimiter used in a classpath.
|
EnvironmentClasspathConfigurer |
entries(java.util.List<java.lang.String> entries)
Specify a new classpath entries.
|
EnvironmentClasspathConfigurer |
entries(java.lang.String... entries)
Specify a new classpath entries.
|
EnvironmentClasspathConfigurer |
entry(java.lang.String entry)
Specify a new classpath entry.
|
EnvironmentClasspathConfigurer |
includeBaseDirectory(boolean includeBaseDirectory)
Specify if base directory should be added in classpath.
|
EnvironmentClasspathConfigurer |
siteMapreduceAppClasspath(java.lang.String... defaultClasspath)
Specify a default mr application classpath entries.
|
EnvironmentClasspathConfigurer |
siteMapreduceAppClasspath(java.lang.String defaultClasspath)
Specify a default mr application classpath.
|
EnvironmentClasspathConfigurer |
siteYarnAppClasspath(java.lang.String... defaultClasspath)
Specify a default yarn application classpath entries.
|
EnvironmentClasspathConfigurer |
siteYarnAppClasspath(java.lang.String defaultClasspath)
Specify a default yarn application classpath.
|
EnvironmentClasspathConfigurer |
useMapreduceAppClasspath(boolean useMapreduceAppClasspath)
Specify if default mr classpath entries should be added.
|
EnvironmentClasspathConfigurer |
useYarnAppClasspath(boolean useYarnAppClasspath)
Specify if default yarn classpath entries should be added.
|
and
EnvironmentClasspathConfigurer entry(java.lang.String entry)
entry
- the classpath entryEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer entries(java.lang.String... entries)
entries
- the classpath entriesEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer entries(java.util.List<java.lang.String> entries)
entries
- the classpath entriesEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer useYarnAppClasspath(boolean useYarnAppClasspath)
useYarnAppClasspath
- the use default yarn classpathEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer useMapreduceAppClasspath(boolean useMapreduceAppClasspath)
useMapreduceAppClasspath
- the use default mr classpathEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer siteYarnAppClasspath(java.lang.String defaultClasspath)
defaultClasspath
- the default yarn classpathEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer siteMapreduceAppClasspath(java.lang.String defaultClasspath)
defaultClasspath
- the default mr classpathEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer siteYarnAppClasspath(java.lang.String... defaultClasspath)
defaultClasspath
- the default classpath entries.EnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer siteMapreduceAppClasspath(java.lang.String... defaultClasspath)
defaultClasspath
- the default classpath entries.EnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer includeBaseDirectory(boolean includeBaseDirectory)
includeBaseDirectory
- the include base directoryEnvironmentClasspathConfigurer
for chainingEnvironmentClasspathConfigurer delimiter(java.lang.String delimiter)
delimiter
- the delimiterEnvironmentClasspathConfigurer
for chaining