Show / Hide Table of Contents

Interface CfnCluster.IHadoopJarStepConfigProperty

The HadoopJarStepConfig property type specifies a job flow step consisting of a JAR file whose main function will be executed.

Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.AWS.EMR.dll
Syntax (csharp)
public interface IHadoopJarStepConfigProperty
Syntax (vb)
Public Interface 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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html

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;

HadoopJarStepConfigProperty 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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html#cfn-elasticmapreduce-cluster-hadoopjarstepconfig-args

Jar

A path to a JAR file run during the step.

string Jar { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html#cfn-elasticmapreduce-cluster-hadoopjarstepconfig-jar

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html#cfn-elasticmapreduce-cluster-hadoopjarstepconfig-mainclass

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-hadoopjarstepconfig.html#cfn-elasticmapreduce-cluster-hadoopjarstepconfig-stepproperties

Back to top Generated by DocFX