public class DefaultEnvironmentClasspathConfigurer extends AnnotationConfigurerAdapter<java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder> implements EnvironmentClasspathConfigurer
AnnotationConfigurer
which knows how to handle configuring a
classpath.Constructor and Description |
---|
DefaultEnvironmentClasspathConfigurer() |
DefaultEnvironmentClasspathConfigurer(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
configure(YarnEnvironmentBuilder builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder . |
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 defaultClasspath)
Specify if default mr classpath entries should be added.
|
EnvironmentClasspathConfigurer |
useYarnAppClasspath(boolean defaultClasspath)
Specify if default yarn classpath entries should be added.
|
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public DefaultEnvironmentClasspathConfigurer()
public DefaultEnvironmentClasspathConfigurer(java.lang.String id)
public void configure(YarnEnvironmentBuilder builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.configure
in interface AnnotationConfigurer<java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>,YarnEnvironmentBuilder>
configure
in class AnnotationConfigurerAdapter<java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>,YarnEnvironmentConfigurer,YarnEnvironmentBuilder>
builder
- the builderjava.lang.Exception
- if error occurredpublic EnvironmentClasspathConfigurer entry(java.lang.String entry)
EnvironmentClasspathConfigurer
entry
in interface EnvironmentClasspathConfigurer
entry
- the classpath entryEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer entries(java.lang.String... entries)
EnvironmentClasspathConfigurer
entries
in interface EnvironmentClasspathConfigurer
entries
- the classpath entriesEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer entries(java.util.List<java.lang.String> entries)
EnvironmentClasspathConfigurer
entries
in interface EnvironmentClasspathConfigurer
entries
- the classpath entriesEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer useYarnAppClasspath(boolean defaultClasspath)
EnvironmentClasspathConfigurer
useYarnAppClasspath
in interface EnvironmentClasspathConfigurer
defaultClasspath
- the use default yarn classpathEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer useMapreduceAppClasspath(boolean defaultClasspath)
EnvironmentClasspathConfigurer
useMapreduceAppClasspath
in interface EnvironmentClasspathConfigurer
defaultClasspath
- the use default mr classpathEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer siteYarnAppClasspath(java.lang.String defaultClasspath)
EnvironmentClasspathConfigurer
siteYarnAppClasspath
in interface EnvironmentClasspathConfigurer
defaultClasspath
- the default yarn classpathEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer siteMapreduceAppClasspath(java.lang.String defaultClasspath)
EnvironmentClasspathConfigurer
siteMapreduceAppClasspath
in interface EnvironmentClasspathConfigurer
defaultClasspath
- the default mr classpathEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer siteYarnAppClasspath(java.lang.String... defaultClasspath)
EnvironmentClasspathConfigurer
siteYarnAppClasspath
in interface EnvironmentClasspathConfigurer
defaultClasspath
- the default classpath entries.EnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer siteMapreduceAppClasspath(java.lang.String... defaultClasspath)
EnvironmentClasspathConfigurer
siteMapreduceAppClasspath
in interface EnvironmentClasspathConfigurer
defaultClasspath
- the default classpath entries.EnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer includeBaseDirectory(boolean includeBaseDirectory)
EnvironmentClasspathConfigurer
includeBaseDirectory
in interface EnvironmentClasspathConfigurer
includeBaseDirectory
- the include base directoryEnvironmentClasspathConfigurer
for chainingpublic EnvironmentClasspathConfigurer delimiter(java.lang.String delimiter)
EnvironmentClasspathConfigurer
delimiter
in interface EnvironmentClasspathConfigurer
delimiter
- the delimiterEnvironmentClasspathConfigurer
for chaining