aws-cdk-lib.aws_emr.CfnStep.HadoopJarStepConfigProperty

interface HadoopJarStepConfigProperty

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

A job flow step consisting of a JAR file whose main function will be executed.

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 { aws_emr as emr } from 'aws-cdk-lib';
const hadoopJarStepConfigProperty: emr.CfnStep.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.