Package org.springframework.yarn.configuration

Examples of org.springframework.yarn.configuration.ConfigurationFactoryBean


    super(objectPostProcessor);
  }

  @Override
  protected YarnConfiguration performBuild() throws Exception {
    ConfigurationFactoryBean fb = new ConfigurationFactoryBean();

    if (!loadDefaults) {
      fb.setConfiguration(new YarnConfiguration(new Configuration(false)));
    }

    fb.setResources(resources);
    fb.setProperties(properties);
    fb.setFsUri(fileSystemUri);
    fb.setRmAddress(rmAddress);
    fb.setSchedulerAddress(schedulerAddress);

    if (hadoopSecurity != null) {
      fb.setSecurityAuthMethod(hadoopSecurity.getSecurityAuthMethod());
      fb.setUserPrincipal(hadoopSecurity.getUserPrincipal());
      fb.setUserKeytab(hadoopSecurity.getUserKeytab());
      fb.setNamenodePrincipal(hadoopSecurity.getNamenodePrincipal());
      fb.setRmManagerPrincipal(hadoopSecurity.getRmManagerPrincipal());
    }

    fb.afterPropertiesSet();

    YarnConfiguration c = fb.getObject();
    c = postProcess(c);
    return c;
  }
View Full Code Here


  @Configuration
  static class Config {

    @Bean(name=YarnSystemConstants.DEFAULT_ID_CONFIGURATION)
    public YarnConfiguration yarnConfiguration() throws Exception {
      ConfigurationFactoryBean factory = new ConfigurationFactoryBean();
      factory.afterPropertiesSet();
      return factory.getObject();
    }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.configuration.ConfigurationFactoryBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.