public static interface CfnCluster.HadoopJarStepConfigProperty
The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.emr.*; HadoopJarStepConfigProperty hadoopJarStepConfigProperty = HadoopJarStepConfigProperty.builder() .jar("jar") // the properties below are optional .args(List.of("args")) .mainClass("mainClass") .stepProperties(List.of(KeyValueProperty.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnCluster.HadoopJarStepConfigProperty.Builder
A builder for
CfnCluster.HadoopJarStepConfigProperty |
static class |
CfnCluster.HadoopJarStepConfigProperty.Jsii$Proxy
An implementation for
CfnCluster.HadoopJarStepConfigProperty |
Modifier and Type | Method and Description |
---|---|
static CfnCluster.HadoopJarStepConfigProperty.Builder |
builder() |
default java.util.List<java.lang.String> |
getArgs()
A list of command line arguments passed to the JAR file's main function when executed.
|
java.lang.String |
getJar()
A path to a JAR file run during the step.
|
default java.lang.String |
getMainClass()
The name of the main class in the specified Java file.
|
default java.lang.Object |
getStepProperties()
A list of Java properties that are set when the step runs.
|
java.lang.String getJar()
default java.util.List<java.lang.String> getArgs()
default java.lang.String getMainClass()
If not specified, the JAR file should specify a Main-Class in its manifest file.
default java.lang.Object getStepProperties()
You can use these properties to pass key-value pairs to your main function.
static CfnCluster.HadoopJarStepConfigProperty.Builder builder()