aws-cdk-lib.aws_emr.CfnCluster.HadoopJarStepConfigProperty

interface HadoopJarStepConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.EMR.CfnCluster.HadoopJarStepConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnCluster_HadoopJarStepConfigProperty
Javasoftware.amazon.awscdk.services.emr.CfnCluster.HadoopJarStepConfigProperty
Pythonaws_cdk.aws_emr.CfnCluster.HadoopJarStepConfigProperty
TypeScript aws-cdk-lib » aws_emr » CfnCluster » HadoopJarStepConfigProperty

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 { aws_emr as emr } from 'aws-cdk-lib';
const hadoopJarStepConfigProperty: emr.CfnCluster.HadoopJarStepConfigProperty = {
  jar: 'jar',

  // the properties below are optional
  args: ['args'],
  mainClass: 'mainClass',
  stepProperties: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
jarstringA path to a JAR file run during the step.
args?string[]A list of command line arguments passed to the JAR file's main function when executed.
mainClass?stringThe name of the main class in the specified Java file.
stepProperties?IResolvable | IResolvable | KeyValueProperty[]A list of Java properties that are set when the step runs.

jar

Type: string

A path to a JAR file run during the step.


args?

Type: string[] (optional)

A list of command line arguments passed to the JAR file's main function when executed.


mainClass?

Type: string (optional)

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.


stepProperties?

Type: IResolvable | IResolvable | KeyValueProperty[] (optional)

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.