org.springframework.yarn.config.annotation.configurers
Class DefaultLocalResourcesHdfsConfigurer
java.lang.Object
org.springframework.data.hadoop.config.common.annotation.AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
org.springframework.yarn.config.annotation.configurers.DefaultLocalResourcesHdfsConfigurer
- All Implemented Interfaces:
- AnnotationConfigurer<ResourceLocalizer,YarnResourceLocalizerBuilder>, AnnotationConfigurerBuilder<YarnResourceLocalizerConfigurer>, LocalResourcesHdfsConfigurer
public class DefaultLocalResourcesHdfsConfigurer
- extends AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
- implements LocalResourcesHdfsConfigurer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLocalResourcesHdfsConfigurer
public DefaultLocalResourcesHdfsConfigurer()
configure
public void configure(YarnResourceLocalizerBuilder 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<ResourceLocalizer,YarnResourceLocalizerBuilder>
- Overrides:
configure
in class AnnotationConfigurerAdapter<ResourceLocalizer,YarnResourceLocalizerConfigurer,YarnResourceLocalizerBuilder>
- Parameters:
builder
- the builder
- Throws:
java.lang.Exception
- if error occurred
hdfs
public LocalResourcesHdfsConfigurer hdfs(java.lang.String path)
- Specified by:
hdfs
in interface LocalResourcesHdfsConfigurer
hdfs
public LocalResourcesHdfsConfigurer hdfs(java.lang.String dir,
java.lang.String file)
- Specified by:
hdfs
in interface LocalResourcesHdfsConfigurer
hdfs
public LocalResourcesHdfsConfigurer hdfs(java.lang.String path,
org.apache.hadoop.yarn.api.records.LocalResourceType type)
- Specified by:
hdfs
in interface LocalResourcesHdfsConfigurer
hdfs
public LocalResourcesHdfsConfigurer hdfs(java.lang.String path,
org.apache.hadoop.yarn.api.records.LocalResourceType type,
boolean staging)
- Specified by:
hdfs
in interface LocalResourcesHdfsConfigurer
hdfs
public LocalResourcesHdfsConfigurer hdfs(java.lang.String dir,
java.lang.String file,
org.apache.hadoop.yarn.api.records.LocalResourceType type)
- Specified by:
hdfs
in interface LocalResourcesHdfsConfigurer