|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface YarnResourceLocalizerConfigurer
Interface for YarnResourceLocalizerBuilder
used from
a SpringYarnConfigurerAdapter
.
Typically configuration is used as shown below.
@Configuration @EnableYarn static class Config extends SpringYarnConfigurerAdapter { @Override public void configure(YarnResourceLocalizerConfigure localizer) throws Exception { localizer .withCopy() .copy("foo.jar", "/tmp", true) .and() .withHdfs() .hdfs("/tmp/foo.jar"); } }
Method Summary | |
---|---|
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 . |
Method Detail |
---|
LocalResourcesCopyConfigurer withCopy() throws java.lang.Exception
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>
LocalResourcesCopyConfigurer
for chaining
java.lang.Exception
- if error occurredLocalResourcesHdfsConfigurer withHdfs() throws java.lang.Exception
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>
LocalResourcesCopyConfigurer
for chaining
java.lang.Exception
- if error occurredYarnResourceLocalizerConfigurer stagingDirectory(java.lang.String stagingDirectory) throws java.lang.Exception
java.lang.Exception
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |