@Configuration @EnableConfigurationProperties(value={SpringHadoopProperties.class,SpringYarnProperties.class,SpringYarnEnvProperties.class,SpringYarnClientProperties.class,SpringYarnClientLaunchContextProperties.class,SpringYarnClientLocalizerProperties.class,SpringYarnClientResourceProperties.class}) @EnableYarn(enable=CLIENT) public static class YarnClientAutoConfiguration.SpringYarnConfig extends SpringYarnConfigurerAdapter
Constructor and Description |
---|
YarnClientAutoConfiguration.SpringYarnConfig() |
Modifier and Type | Method and Description |
---|---|
void |
configure(YarnClientConfigurer client)
Configure
YarnClient via YarnClientBuilder builder. |
void |
configure(YarnConfigConfigurer config)
Configure
YarnConfiguration via YarnConfigBuilder builder. |
void |
configure(YarnEnvironmentConfigurer environment)
Configure
Map of environment via YarnEnvironmentBuilder builder. |
void |
configure(YarnResourceLocalizerConfigurer localizer)
Configure
ResourceLocalizer via YarnResourceLocalizerBuilder builder. |
configure, configure, configure, getAppmasterBuilder, getClientBuilder, getConfigBuilder, getContainerBuilder, getEnvironmentBuilder, getLocalizerBuilder, init, isAssignable, setObjectPostProcessor
public YarnClientAutoConfiguration.SpringYarnConfig()
public void configure(YarnConfigConfigurer config) throws java.lang.Exception
SpringYarnConfigurer
YarnConfiguration
via YarnConfigBuilder
builder.configure
in interface SpringYarnConfigurer
configure
in class SpringYarnConfigurerAdapter
config
- the YarnConfiguration
builderjava.lang.Exception
- if error occurredpublic void configure(YarnResourceLocalizerConfigurer localizer) throws java.lang.Exception
SpringYarnConfigurer
ResourceLocalizer
via YarnResourceLocalizerBuilder
builder.configure
in interface SpringYarnConfigurer
configure
in class SpringYarnConfigurerAdapter
localizer
- the ResourceLocalizer
builderjava.lang.Exception
- if error occurredpublic void configure(YarnEnvironmentConfigurer environment) throws java.lang.Exception
SpringYarnConfigurer
Map
of environment via YarnEnvironmentBuilder
builder.configure
in interface SpringYarnConfigurer
configure
in class SpringYarnConfigurerAdapter
environment
- the YarnEnvironmentBuilder
builderjava.lang.Exception
- if error occurredpublic void configure(YarnClientConfigurer client) throws java.lang.Exception
SpringYarnConfigurer
YarnClient
via YarnClientBuilder
builder.configure
in interface SpringYarnConfigurer
configure
in class SpringYarnConfigurerAdapter
client
- the YarnClientBuilder
builderjava.lang.Exception
- if error occurred