org.springframework.yarn.config.annotation.configurers
Class DefaultClientMasterRunnerConfigurer
java.lang.Object
org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<YarnClient,YarnClientConfigurer,YarnClientBuilder>
org.springframework.yarn.config.annotation.configurers.DefaultClientMasterRunnerConfigurer
- All Implemented Interfaces:
- AnnotationConfigurer<YarnClient,YarnClientBuilder>, AnnotationConfigurerBuilder<YarnClientConfigurer>, ClientMasterRunnerConfigurer
public class DefaultClientMasterRunnerConfigurer
- extends AnnotationConfigurerAdapter<YarnClient,YarnClientConfigurer,YarnClientBuilder>
- implements ClientMasterRunnerConfigurer
AnnotationConfigurer
for YarnAppmaster
launch commands.
- Author:
- Janne Valkealahti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClientMasterRunnerConfigurer
public DefaultClientMasterRunnerConfigurer()
configure
public void configure(YarnClientBuilder builder)
throws java.lang.Exception
- Description copied from interface:
AnnotationConfigurer
- Configure the
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.
- Specified by:
configure
in interface AnnotationConfigurer<YarnClient,YarnClientBuilder>
- Overrides:
configure
in class AnnotationConfigurerAdapter<YarnClient,YarnClientConfigurer,YarnClientBuilder>
- Parameters:
builder
- the builder
- Throws:
java.lang.Exception
- if error occurred
contextClass
public ClientMasterRunnerConfigurer contextClass(java.lang.Class<?> clazz)
- Specified by:
contextClass
in interface ClientMasterRunnerConfigurer
contextFile
public ClientMasterRunnerConfigurer contextFile(java.lang.String file)
- Specified by:
contextFile
in interface ClientMasterRunnerConfigurer
beanName
public ClientMasterRunnerConfigurer beanName(java.lang.String bean)
- Specified by:
beanName
in interface ClientMasterRunnerConfigurer
stdout
public ClientMasterRunnerConfigurer stdout(java.lang.String path)
- Specified by:
stdout
in interface ClientMasterRunnerConfigurer
stderr
public ClientMasterRunnerConfigurer stderr(java.lang.String path)
- Specified by:
stderr
in interface ClientMasterRunnerConfigurer
arguments
public ClientMasterRunnerConfigurer arguments(java.util.Properties arguments)
- Specified by:
arguments
in interface ClientMasterRunnerConfigurer