Package org.springframework.yarn.client

Examples of org.springframework.yarn.client.YarnClientFactoryBean


    }
    return state;
  }

  protected YarnClient getYarnClient() throws Exception {
    YarnClientFactoryBean factory = new YarnClientFactoryBean();
    factory.setConfiguration(configuration);
    factory.afterPropertiesSet();
    return factory.getObject();
  }
View Full Code Here


   */
  public YarnClientBuilder() {}

  @Override
  protected YarnClient performBuild() throws Exception {
    YarnClientFactoryBean fb = new YarnClientFactoryBean();
    fb.setConfiguration(configuration);
    fb.setResourceLocalizer(resourceLocalizer);
    fb.setEnvironment(environment);
    fb.setAppName(appName);
    fb.setAppType(appType);
    if (clientClass != null) {
      fb.setClientClass(clientClass);
    }
    if (commands != null) {
      fb.setCommands(commands);
    }
    if (priority != null) {
      fb.setPriority(priority);
    }
    if (queue != null) {
      fb.setQueue(queue);
    }
    if (virtualCores != null) {
      fb.setVirtualcores(virtualCores);
    }
    if (memory != null) {
      fb.setMemory(ParsingUtils.parseBytesAsMegs(memory));
    }
    fb.afterPropertiesSet();
    return fb.getObject();
  }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.client.YarnClientFactoryBean

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.