@Configuration public class SpringHadoopConfiguration extends AbstractAnnotationConfiguration<SpringHadoopConfigBuilder,SpringHadoopConfigs>
SpringHadoopConfigBuilder
to create SpringHadoopConfigs
holding all relevant configurations for Spring Hadoop. It then exports the
necessary beans. Customisations can be made to SpringHadoopConfigBuilder
by
extending SpringHadoopConfigurerAdapter
and exposing it as a
Configuration
or implementing SpringHadoopConfigurer
and
exposing it as a Configuration
. This configuration is imported when
using EnableHadoop
.EnableYarn
,
SpringYarnConfigBuilder
Modifier and Type | Field and Description |
---|---|
protected SpringHadoopConfigBuilder |
builder |
Constructor and Description |
---|
SpringHadoopConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
configuration() |
protected void |
onConfigurers(java.util.List<AnnotationConfigurer<SpringHadoopConfigs,SpringHadoopConfigBuilder>> configurers) |
getAnnotationAttributes, getConfigurers, setBeanClassLoader, setConfigurers, setImportMetadata
protected final SpringHadoopConfigBuilder builder
protected void onConfigurers(java.util.List<AnnotationConfigurer<SpringHadoopConfigs,SpringHadoopConfigBuilder>> configurers) throws java.lang.Exception
onConfigurers
in class AbstractAnnotationConfiguration<SpringHadoopConfigBuilder,SpringHadoopConfigs>
java.lang.Exception
@Bean(name="hadoopConfiguration") public org.apache.hadoop.conf.Configuration configuration() throws java.lang.Exception
java.lang.Exception