Package org.apache.helix.provisioning

Examples of org.apache.helix.provisioning.ApplicationSpecFactory


        "YAML config file that provides the app specifications"));
    CommandLine cliParser = new GnuParser().parse(opts, args);
    String appSpecFactoryClass = cliParser.getOptionValue("app_spec_provider");
    String yamlConfigFileName = cliParser.getOptionValue("app_config_spec");

    ApplicationSpecFactory applicationSpecFactory =
        HelixYarnUtil.createInstance(appSpecFactoryClass);
    File yamlConfigFile = new File(yamlConfigFileName);
    if (!yamlConfigFile.exists()) {
      throw new IllegalArgumentException("YAML app_config_spec file: '" + yamlConfigFileName
          + "' does not exist");
View Full Code Here


        "YAML config file that provides the app specifications"));
    CommandLine cliParser = new GnuParser().parse(opts, args);
    String appSpecFactoryClass = cliParser.getOptionValue("app_spec_provider");
    String yamlConfigFileName = cliParser.getOptionValue("app_config_spec");

    ApplicationSpecFactory applicationSpecFactory =
        HelixYarnUtil.createInstance(appSpecFactoryClass);
    File yamlConfigFile = new File(yamlConfigFileName);
    if (!yamlConfigFile.exists()) {
      throw new IllegalArgumentException("YAML app_config_spec file: '" + yamlConfigFileName
          + "' does not exist");
View Full Code Here

    try {
      genericApplicationMaster.start();
    } catch (Exception e) {
      LOG.error("Unable to start application master: ", e);
    }
    ApplicationSpecFactory factory = HelixYarnUtil.createInstance(className);

    // TODO: Avoid setting static variable.
    YarnProvisioner.applicationMaster = genericApplicationMaster;
    YarnProvisioner.applicationMasterConfig = appMasterConfig;
    ApplicationSpec applicationSpec = factory.fromYaml(new FileInputStream(configFile));
    YarnProvisioner.applicationSpec = applicationSpec;
    String zkAddress = appMasterConfig.getZKAddress();
    String clusterName = appMasterConfig.getAppName();

    // CREATE CLUSTER and setup the resources
View Full Code Here

TOP

Related Classes of org.apache.helix.provisioning.ApplicationSpecFactory

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.