Package org.springframework.yarn.am

Examples of org.springframework.yarn.am.AbstractAppmaster


  protected YarnAppmaster performBuild() throws Exception {

    YarnAppmaster appmaster = BeanUtils.instantiate(appmasterClass);

    if (appmaster instanceof AbstractAppmaster) {
      AbstractAppmaster abstractAppmaster = (AbstractAppmaster) appmaster;
      for (Entry<String, String[]> entry : commands.entrySet()) {
        abstractAppmaster.setCommands(entry.getKey(), entry.getValue());
      }

      for (Entry<String, Map<String, String>> entry : environments.entrySet()) {
        abstractAppmaster.setEnvironment(entry.getKey(), entry.getValue());
      }

      abstractAppmaster.setConfiguration(configuration);
      abstractAppmaster.setResourceLocalizer(resourceLocalizer);
      if (appmaster instanceof AbstractServicesAppmaster) {
        AbstractServicesAppmaster abstractServicesAppmaster = (AbstractServicesAppmaster)appmaster;

        DefaultContainerLauncher launcher = new DefaultContainerLauncher();
        launcher.setConfiguration(configuration);
View Full Code Here

TOP

Related Classes of org.springframework.yarn.am.AbstractAppmaster

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.