Skip to content
v2.274.0

HadoopJarStepConfigProperty Struct ​

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 ​

ts
// 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 ​

argsoptionalstring[]argsoptionaltyping.List[str]argsoptionalList<String>Argsoptionalstring[]Argsoptional*[]*string#
A list of command line arguments passed to the JAR file's main function when executed.
jarstringjarstrjarStringJarstringJar*stringrequired#
A path to a JAR file run during the step.
mainClassoptionalstringmain_classoptionalstrmainClassoptionalStringMainClassoptionalstringMainClassoptional*string#
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.

stepPropertiesoptionalIResolvable | IResolvable | CfnStep.KeyValueProperty[]step_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyValueProperty]]]stepPropertiesoptionalIResolvableStepPropertiesoptionalIResolvableStepPropertiesoptionalinterface{}#
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.