Package com.amazonaws.services.elasticmapreduce.model

Examples of com.amazonaws.services.elasticmapreduce.model.BootstrapActionConfig


  public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {
    List<String> args = config.getScriptBootstrapAction().getArgs();
    args.add(0, condition);
    args.add(1, config.getScriptBootstrapAction().getPath());

    return new BootstrapActionConfig()
      .withName("Run If, " + config.getName())
      .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
        .withPath("s3://" + bucket + "/bootstrap-actions/run-if")
        .withArgs(args));
  }
View Full Code Here


    /**
     * Returns an object which can be used in a RunJobflow call.
     * @return an object which can be used in a RunJobflow call.
     */
    public BootstrapActionConfig build() {
      return new BootstrapActionConfig()
        .withName("Configure Hadoop")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-hadoop")
          .withArgs(args));
    }
View Full Code Here

    public BootstrapActionConfig build() {
      if (replace) {
        args.add("--replace");
      }

      return new BootstrapActionConfig()
        .withName("Configure Daemons")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-daemons")
          .withArgs(args));
    }
View Full Code Here

  public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {
    List<String> args = config.getScriptBootstrapAction().getArgs();
    args.add(0, condition);
    args.add(1, config.getScriptBootstrapAction().getPath());

    return new BootstrapActionConfig()
      .withName("Run If, " + config.getName())
      .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
        .withPath("s3://" + bucket + "/bootstrap-actions/run-if")
        .withArgs(args));
  }
View Full Code Here

    /**
     * Returns an object which can be used in a RunJobflow call.
     * @return an object which can be used in a RunJobflow call.
     */
    public BootstrapActionConfig build() {
      return new BootstrapActionConfig()
        .withName("Configure Hadoop")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-hadoop")
          .withArgs(args));
    }
View Full Code Here

    public BootstrapActionConfig build() {
      if (replace) {
        args.add("--replace");
      }

      return new BootstrapActionConfig()
        .withName("Configure Daemons")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-daemons")
          .withArgs(args));
    }
View Full Code Here

  public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {
    List<String> args = config.getScriptBootstrapAction().getArgs();
    args.add(0, condition);
    args.add(1, config.getScriptBootstrapAction().getPath());

    return new BootstrapActionConfig()
      .withName("Run If, " + config.getName())
      .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
        .withPath("s3://" + bucket + "/bootstrap-actions/run-if")
        .withArgs(args));
  }
View Full Code Here

    /**
     * Returns an object which can be used in a RunJobflow call.
     * @return an object which can be used in a RunJobflow call.
     */
    public BootstrapActionConfig build() {
      return new BootstrapActionConfig()
        .withName("Configure Hadoop")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-hadoop")
          .withArgs(args));
    }
View Full Code Here

    public BootstrapActionConfig build() {
      if (replace) {
        args.add("--replace");
      }

      return new BootstrapActionConfig()
        .withName("Configure Daemons")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-daemons")
          .withArgs(args));
    }
View Full Code Here

    public BootstrapActionConfig build() {
      if (replace) {
        args.add("--replace");
      }

      return new BootstrapActionConfig()
        .withName("Configure Daemons")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-daemons")
          .withArgs(args));
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.elasticmapreduce.model.BootstrapActionConfig

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.