public final class YarnResourceLocalizerBuilder extends org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder> implements YarnResourceLocalizerConfigurer
AnnotationBuilder for ResourceLocalizer.| Constructor and Description |
|---|
YarnResourceLocalizerBuilder()
Instantiates a new yarn resource localizer builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configuration(Configuration configuration) |
YarnResourceLocalizerConfigurer |
defaultLocalResourceType(LocalResourceType type) |
YarnResourceLocalizerConfigurer |
defaultLocalResourceVisibility(LocalResourceVisibility visibility) |
protected ResourceLocalizer |
performBuild() |
void |
setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries) |
void |
setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> transferEntries) |
void |
setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries) |
YarnResourceLocalizerConfigurer |
stagingDirectory(String stagingDirectory) |
LocalResourcesCopyConfigurer |
withCopy()
Specify configuration options as properties with a
DefaultLocalResourcesCopyConfigurer. |
LocalResourcesHdfsConfigurer |
withHdfs()
Specify configuration options as properties with a
DefaultLocalResourcesCopyConfigurer. |
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObjectpublic YarnResourceLocalizerBuilder()
protected ResourceLocalizer performBuild() throws Exception
performBuild in class org.springframework.data.hadoop.config.common.annotation.AbstractConfiguredAnnotationBuilder<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>Exceptionpublic LocalResourcesCopyConfigurer withCopy() throws Exception
YarnResourceLocalizerConfigurerDefaultLocalResourcesCopyConfigurer.
public void configure(YarnResourceLocalizerConfigure localizer) throws Exception {
localizer
.withCopy()
.copy("foo.jar", "/tmp", true);
}
<yarn:localresources> <:hdfs path="/tmp/foo.jar" staging="false"/> </yarn:localresources>
withCopy in interface YarnResourceLocalizerConfigurerLocalResourcesCopyConfigurer for chainingException - if error occurredpublic LocalResourcesHdfsConfigurer withHdfs() throws Exception
YarnResourceLocalizerConfigurerDefaultLocalResourcesCopyConfigurer.
public void configure(YarnResourceLocalizerConfigure localizer) throws Exception {
localizer
.withHdfs()
.hdfs("/tmp/foo.jar");
}
<yarn:localresources> <:hdfs path="/tmp/foo.jar" staging="false"/> </yarn:localresources>
withHdfs in interface YarnResourceLocalizerConfigurerLocalResourcesCopyConfigurer for chainingException - if error occurredpublic YarnResourceLocalizerConfigurer stagingDirectory(String stagingDirectory)
stagingDirectory in interface YarnResourceLocalizerConfigurerpublic void configuration(Configuration configuration)
public YarnResourceLocalizerConfigurer defaultLocalResourceType(LocalResourceType type)
public YarnResourceLocalizerConfigurer defaultLocalResourceVisibility(LocalResourceVisibility visibility)
public void setCopyEntries(Collection<LocalResourcesFactoryBean.CopyEntry> copyEntries)
public void setHdfsEntries(Collection<LocalResourcesFactoryBean.TransferEntry> transferEntries)
public void setRawCopyEntries(Collection<LocalResourcesFactoryBean.RawCopyEntry> rawEntries)