@Stability(value=Stable)
public static interface CfnStep.HadoopJarStepConfigProperty
extends software.amazon.jsii.JsiiSerializable
The main function submits a job for Hadoop to execute and waits for the job to finish or fail.
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 |
CfnStep.HadoopJarStepConfigProperty.Builder
A builder for
CfnStep.HadoopJarStepConfigProperty |
static class |
CfnStep.HadoopJarStepConfigProperty.Jsii$Proxy
An implementation for
CfnStep.HadoopJarStepConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStep.HadoopJarStepConfigProperty.Builder |
builder() |
default List<String> |
getArgs()
A list of command line arguments passed to the JAR file's main function when executed.
|
String |
getJar()
A path to a JAR file run during the step.
|
default String |
getMainClass()
The name of the main class in the specified Java file.
|
default Object |
getStepProperties()
A list of Java properties that are set when the step runs.
|
@Stability(value=Stable) @NotNull String getJar()
@Stability(value=Stable) @Nullable default List<String> getArgs()
@Stability(value=Stable) @Nullable default String getMainClass()
If not specified, the JAR file should specify a Main-Class in its manifest file.
@Stability(value=Stable) @Nullable default Object getStepProperties()
You can use these properties to pass key value pairs to your main function.
@Stability(value=Stable) static CfnStep.HadoopJarStepConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.