Interface CfnStep.IHadoopJarStepConfigProperty
A job flow step consisting of a JAR file whose main function will be executed.
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHadoopJarStepConfigProperty
Syntax (vb)
Public Interface IHadoopJarStepConfigProperty
Remarks
The main function submits a job for Hadoop to execute and waits for the job to finish or fail.
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.AWS.EMR;
var hadoopJarStepConfigProperty = new HadoopJarStepConfigProperty {
Jar = "jar",
// the properties below are optional
Args = new [] { "args" },
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.
virtual string[] Args { get; }
Property Value
System.String[]
Remarks
Jar
A path to a JAR file run during the step.
string Jar { get; }
Property Value
System.String
Remarks
MainClass
The name of the main class in the specified Java file.
virtual string MainClass { get; }
Property Value
System.String
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.
virtual object StepProperties { get; }
Property Value
System.Object
Remarks
You can use these properties to pass key value pairs to your main function.