Interface CfnCluster.HadoopJarStepConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCluster.HadoopJarStepConfigProperty.Jsii$Proxy
- Enclosing class:
CfnCluster
@Stability(Stable)
public static interface CfnCluster.HadoopJarStepConfigProperty
extends software.amazon.jsii.JsiiSerializable
The
HadoopJarStepConfig
property type specifies a job flow step consisting of a JAR file whose main function will be executed.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnCluster.HadoopJarStepConfigProperty
static final class
An implementation forCfnCluster.HadoopJarStepConfigProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
getArgs()
A list of command line arguments passed to the JAR file's main function when executed.getJar()
A path to a JAR file run during the step.default String
The name of the main class in the specified Java file.default Object
A list of Java properties that are set when the step runs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJar
A path to a JAR file run during the step.- See Also:
-
getArgs
A list of command line arguments passed to the JAR file's main function when executed.- See Also:
-
getMainClass
The name of the main class in the specified Java file.If not specified, the JAR file should specify a Main-Class in its manifest file.
- See Also:
-
getStepProperties
A list of Java properties that are set when the step runs.You can use these properties to pass key-value pairs to your main function.
- See Also:
-
builder
-