|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.config.common.annotation.AbstractAnnotationBuilder<O> org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder> org.springframework.yarn.config.annotation.builders.YarnResourceLocalizerBuilder
public final class YarnResourceLocalizerBuilder
AnnotationBuilder
for ResourceLocalizer
.
Constructor Summary | |
---|---|
YarnResourceLocalizerBuilder()
Instantiates a new yarn resource localizer builder. |
Method Summary | |
---|---|
void |
configuration(org.apache.hadoop.conf.Configuration configuration)
|
YarnResourceLocalizerConfigurer |
defaultLocalResourceType(org.apache.hadoop.yarn.api.records.LocalResourceType type)
|
YarnResourceLocalizerConfigurer |
defaultLocalResourceVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
|
protected ResourceLocalizer |
performBuild()
Subclasses must implement this method to build the object that is being returned. |
void |
setCopyEntries(java.util.Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
|
void |
setHdfsEntries(java.util.Collection<LocalResourcesFactoryBean.TransferEntry> transferEntries)
|
void |
setRawCopyEntries(java.util.Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)
|
YarnResourceLocalizerConfigurer |
stagingDirectory(java.lang.String stagingDirectory)
|
LocalResourcesCopyConfigurer |
withCopy()
Specify configuration options as properties with a DefaultLocalResourcesCopyConfigurer . |
LocalResourcesHdfsConfigurer |
withHdfs()
Specify configuration options as properties with a DefaultLocalResourcesCopyConfigurer . |
Methods inherited from class org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder |
---|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObject |
Methods inherited from class org.springframework.data.hadoop.config.common.annotation.AbstractAnnotationBuilder |
---|
build, getObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YarnResourceLocalizerBuilder()
Method Detail |
---|
protected ResourceLocalizer performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilder
performBuild
in class AbstractConfiguredAnnotationBuilder<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
java.lang.Exception
public LocalResourcesCopyConfigurer withCopy() throws java.lang.Exception
YarnResourceLocalizerConfigurer
DefaultLocalResourcesCopyConfigurer
.
JavaConfig:
public void configure(YarnResourceLocalizerConfigure localizer) throws Exception { localizer .withCopy() .copy("foo.jar", "/tmp", true); }
XML:
<yarn:localresources> <:hdfs path="/tmp/foo.jar" staging="false"/> </yarn:localresources>
withCopy
in interface YarnResourceLocalizerConfigurer
LocalResourcesCopyConfigurer
for chaining
java.lang.Exception
- if error occurredpublic LocalResourcesHdfsConfigurer withHdfs() throws java.lang.Exception
YarnResourceLocalizerConfigurer
DefaultLocalResourcesCopyConfigurer
.
JavaConfig:
public void configure(YarnResourceLocalizerConfigure localizer) throws Exception { localizer .withHdfs() .hdfs("/tmp/foo.jar"); }
XML:
<yarn:localresources> <:hdfs path="/tmp/foo.jar" staging="false"/> </yarn:localresources>
withHdfs
in interface YarnResourceLocalizerConfigurer
LocalResourcesCopyConfigurer
for chaining
java.lang.Exception
- if error occurredpublic YarnResourceLocalizerConfigurer stagingDirectory(java.lang.String stagingDirectory)
stagingDirectory
in interface YarnResourceLocalizerConfigurer
public void configuration(org.apache.hadoop.conf.Configuration configuration)
public YarnResourceLocalizerConfigurer defaultLocalResourceType(org.apache.hadoop.yarn.api.records.LocalResourceType type)
public YarnResourceLocalizerConfigurer defaultLocalResourceVisibility(org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
public void setCopyEntries(java.util.Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
public void setHdfsEntries(java.util.Collection<LocalResourcesFactoryBean.TransferEntry> transferEntries)
public void setRawCopyEntries(java.util.Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |