|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface YarnContainerConfigurer
YarnContainerConfigure
is an interface for YarnContainerBuilder
which is
exposed to user via SpringYarnConfigurerAdapter
.
Typically configuration is shown below.
@Configuration @EnableYarn(enable=Enable.CONTAINER) static class Config extends SpringYarnConfigurerAdapter { @Override public void configure(YarnContainerConfigure container) throws Exception { container .containerClass(MyYarnContainer.class); } }
Method Summary | |
---|---|
YarnContainerConfigurer |
containerClass(java.lang.Class<? extends YarnContainer> clazz)
Specify a YarnContainer class. |
YarnContainerConfigurer |
containerClass(java.lang.String clazz)
Specify a YarnContainer as a fully qualified class name. |
YarnContainerConfigurer |
containerRef(YarnContainer ref)
Specify a YarnContainer reference. |
Method Detail |
---|
YarnContainerConfigurer containerClass(java.lang.Class<? extends YarnContainer> clazz)
YarnContainer
class.
JavaConfig:
public void configure(YarnContainerConfigure container) throws Exception { container .containerClass(MyYarnContainer.class); }
XML:
<yarn:container container-class="com.example.MyYarnContainer"/>
clazz
- The Yarn container class
YarnContainerConfigurer
for chainingYarnContainerConfigurer containerClass(java.lang.String clazz)
YarnContainer
as a fully qualified class name.
JavaConfig:
public void configure(YarnContainerConfigure container) throws Exception { container .containerClass("foo.example.MyYarnContainer"); }
XML:
No equivalent
clazz
- The Yarn container class
YarnContainerConfigurer
for chainingYarnContainerConfigurer containerRef(YarnContainer ref)
YarnContainer
reference.
JavaConfig:
@Autowired private YarnContainer yarnContainer; public void configure(YarnContainerConfigure container) throws Exception { container .containerRef(MyYarnContainer.class); }
XML:
<bean id="myYarnContainer" class="com.example.MyYarnContainer"/> <yarn:container container-ref="myYarnContainer"/>
ref
- The Yarn container reference
YarnContainerConfigurer
for chaining
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |