interface HadoopJarStepConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EMR.CfnClusterPropsMixin.HadoopJarStepConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsemr#CfnClusterPropsMixin_HadoopJarStepConfigProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.HadoopJarStepConfigProperty |
Python | aws_cdk.cfn_property_mixins.aws_emr.CfnClusterPropsMixin.HadoopJarStepConfigProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_emr » CfnClusterPropsMixin » 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/cfn-property-mixins';
const hadoopJarStepConfigProperty: emr.CfnClusterPropsMixin.HadoopJarStepConfigProperty = {
args: ['args'],
jar: 'jar',
mainClass: 'mainClass',
stepProperties: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| args? | string[] | A list of command line arguments passed to the JAR file's main function when executed. |
| jar? | string | A path to a JAR file run during the step. |
| main | string | The name of the main class in the specified Java file. |
| step | IResolvable | (IResolvable | Key)[] | A list of Java properties that are set when the step runs. |
args?
Type:
string[]
(optional)
A list of command line arguments passed to the JAR file's main function when executed.
jar?
Type:
string
(optional)
A path to a JAR file run during the step.
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 | Key)[]
(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.

.NET
Go
Java
Python
TypeScript