Interface CfnClusterPropsMixin.IHadoopJarStepConfigProperty
The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed.
Namespace: Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnClusterPropsMixin.IHadoopJarStepConfigProperty
Syntax (vb)
Public Interface CfnClusterPropsMixin.IHadoopJarStepConfigProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.EMR.Mixins;
var hadoopJarStepConfigProperty = new HadoopJarStepConfigProperty {
Args = new [] { "args" },
Jar = "jar",
MainClass = "mainClass",
StepProperties = new [] { new KeyValueProperty {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
| Args | A list of command line arguments passed to the JAR file's main function when executed. |
| Jar | A path to a JAR file run during the step. |
| MainClass | The name of the main class in the specified Java file. |
| StepProperties | A list of Java properties that are set when the step runs. |
Properties
Args
A list of command line arguments passed to the JAR file's main function when executed.
string[]? Args { get; }
Property Value
string[]
Remarks
Jar
A path to a JAR file run during the step.
string? Jar { get; }
Property Value
Remarks
MainClass
The name of the main class in the specified Java file.
string? MainClass { get; }
Property Value
Remarks
If not specified, the JAR file should specify a Main-Class in its manifest file.
StepProperties
A list of Java properties that are set when the step runs.
object? StepProperties { get; }
Property Value
Remarks
You can use these properties to pass key-value pairs to your main function.
Type union: either IResolvable or (either IResolvable or CfnClusterPropsMixin.IKeyValueProperty)[]