Class Classification
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.tasks.Classification
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:17.662Z")
@Stability(Stable)
public class Classification
extends software.amazon.jsii.JsiiObject
The classification within a EMR Containers application configuration.
Class can be extended to add other classifications. For example, new Classification('xxx-yyy');
Example:
EmrContainersStartJobRun.Builder.create(this, "EMR Containers Start Job Run") .virtualCluster(VirtualClusterInput.fromVirtualClusterId("de92jdei2910fwedz")) .releaseLabel(ReleaseLabel.EMR_6_2_0) .jobName("EMR-Containers-Job") .jobDriver(JobDriver.builder() .sparkSubmitJobDriver(SparkSubmitJobDriver.builder() .entryPoint(TaskInput.fromText("local:///usr/lib/spark/examples/src/main/python/pi.py")) .build()) .build()) .applicationConfig(List.of(ApplicationConfiguration.builder() .classification(Classification.SPARK_DEFAULTS) .properties(Map.of( "spark.executor.instances", "1", "spark.executor.memory", "512M")) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Classification
Sets the maximizeResourceAllocation property to true or false.static final Classification
Sets values in the spark-defaults.conf file.static final Classification
Sets values in the spark-env.sh file.static final Classification
Sets values in the hive-site.xml for Spark.static final Classification
Sets values in the log4j.properties file.static final Classification
Sets values in the metrics.properties file. -
Constructor Summary
ModifierConstructorDescriptionClassification
(String classificationStatement) Creates a new Classification.protected
Classification
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Classification
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA literal string in case a new EMR classification is released, if not already defined.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
SPARK
Sets the maximizeResourceAllocation property to true or false.When true, Amazon EMR automatically configures spark-defaults properties based on cluster hardware configuration.
For more info:
- See Also:
-
SPARK_DEFAULTS
Sets values in the spark-defaults.conf file.For more info:
- See Also:
-
SPARK_ENV
Sets values in the spark-env.sh file.For more info:
- See Also:
-
SPARK_HIVE_SITE
Sets values in the hive-site.xml for Spark. -
SPARK_LOG4_J
Sets values in the log4j.properties file.For more settings and info:
- See Also:
-
SPARK_METRICS
Sets values in the metrics.properties file.For more settings and info:
- See Also:
-
-
Constructor Details
-
Classification
protected Classification(software.amazon.jsii.JsiiObjectRef objRef) -
Classification
protected Classification(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Classification
Creates a new Classification.- Parameters:
classificationStatement
- A literal string in case a new EMR classification is released, if not already defined. This parameter is required.
-
-
Method Details
-
getClassificationStatement
A literal string in case a new EMR classification is released, if not already defined.
-