List of usage examples for com.amazonaws.services.elasticmapreduce.model BootstrapActionConfig setName
public void setName(String name)
The name of the bootstrap action.
From source file:org.finra.dm.dao.impl.EmrDaoImpl.java
License:Apache License
/** * Create the BootstrapActionConfig object from the bootstrap script. * * @param scriptDescription bootstrap script name to be displayed. * @param bootstrapScript location of the bootstrap script. * * @return bootstrap action configuration that contains all the bootstrap actions for the given configuration. *///from w w w . j av a 2 s.c o m private BootstrapActionConfig getBootstrapActionConfig(String scriptDescription, String bootstrapScript) { // Create the BootstrapActionConfig object BootstrapActionConfig bootstrapConfig = new BootstrapActionConfig(); ScriptBootstrapActionConfig bootstrapConfigScript = new ScriptBootstrapActionConfig(); // Set the bootstrapScript bootstrapConfig.setName(scriptDescription); bootstrapConfigScript.setPath(bootstrapScript); bootstrapConfig.setScriptBootstrapAction(bootstrapConfigScript); // Return the object return bootstrapConfig; }
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
/** * Configure a bootstrap action object, given its name, path and arguments. * * @param path - path for the bootstrap action program in S3 * @param name - name of the bootstrap action * @param args - arguments for the bootstrap action * @return configuration data object for one bootstrap action *///from w w w.j a v a2s .com private static BootstrapActionConfig configureBootstrapAction(String path, String name, List<String> args) { ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); BootstrapActionConfig bootstrapActionConfig = new BootstrapActionConfig(); scriptBootstrapActionConfig.setPath(path); scriptBootstrapActionConfig.setArgs(args); bootstrapActionConfig.setName(name); bootstrapActionConfig.setScriptBootstrapAction(scriptBootstrapActionConfig); return bootstrapActionConfig; }
From source file:org.pentaho.amazon.client.impl.EmrClientImpl.java
License:Apache License
/** * Configure a bootstrap action object, given its name, path and arguments. * * @param path - path for the bootstrap action program in S3 * @param name - name of the bootstrap action * @param args - arguments for the bootstrap action * @return configuration data object for one bootstrap action *///w w w .j av a2 s. c o m private static BootstrapActionConfig createBootstrapAction(String path, String name, List<String> args) { ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); BootstrapActionConfig bootstrapActionConfig = new BootstrapActionConfig(); if (!path.isEmpty()) { scriptBootstrapActionConfig.setPath(path); scriptBootstrapActionConfig.setArgs(args); } bootstrapActionConfig.setName(name); bootstrapActionConfig.setScriptBootstrapAction(scriptBootstrapActionConfig); return bootstrapActionConfig; }
From source file:org.pentaho.amazon.hive.job.AmazonHiveJobExecutor.java
License:Apache License
/** * Configure a bootstrap action object, given its name, path and arguments. * //from ww w .jav a2s . c om * @param path * - path for the bootstrap action program in S3 * @param name * - name of the bootstrap action * @param args * - arguments for the bootstrap action * @return configuration data object for one bootstrap action * */ BootstrapActionConfig ConfigureBootstrapAction(String path, String name, List<String> args) { ScriptBootstrapActionConfig scriptBootstrapActionConfig = new ScriptBootstrapActionConfig(); BootstrapActionConfig bootstrapActionConfig = new BootstrapActionConfig(); scriptBootstrapActionConfig.setPath(path); scriptBootstrapActionConfig.setArgs(args); bootstrapActionConfig.setName(name); bootstrapActionConfig.setScriptBootstrapAction(scriptBootstrapActionConfig); return bootstrapActionConfig; }