@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2023-01-03T16:22:40.475Z") @Stability(value=Stable) public class Classification extends software.amazon.jsii.JsiiObject
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();
| Modifier and Type | Field and Description |
|---|---|
static Classification |
SPARK
Sets the maximizeResourceAllocation property to true or false.
|
static Classification |
SPARK_DEFAULTS
Sets values in the spark-defaults.conf file.
|
static Classification |
SPARK_ENV
Sets values in the spark-env.sh file.
|
static Classification |
SPARK_HIVE_SITE
Sets values in the hive-site.xml for Spark.
|
static Classification |
SPARK_LOG4_J
Sets values in the log4j.properties file.
|
static Classification |
SPARK_METRICS
Sets values in the metrics.properties file.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Classification(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Classification(software.amazon.jsii.JsiiObjectRef objRef) |
|
Classification(String classificationStatement)
Creates a new Classification.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassificationStatement()
A literal string in case a new EMR classification is released, if not already defined.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final Classification SPARK
When true, Amazon EMR automatically configures spark-defaults properties based on cluster hardware configuration.
For more info:
@Stability(value=Stable) public static final Classification SPARK_DEFAULTS
For more info:
@Stability(value=Stable) public static final Classification SPARK_ENV
For more info:
@Stability(value=Stable) public static final Classification SPARK_HIVE_SITE
@Stability(value=Stable) public static final Classification SPARK_LOG4_J
For more settings and info:
@Stability(value=Stable) public static final Classification SPARK_METRICS
For more settings and info:
protected Classification(software.amazon.jsii.JsiiObjectRef objRef)
protected Classification(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Classification(@NotNull
String classificationStatement)
classificationStatement - A literal string in case a new EMR classification is released, if not already defined. This parameter is required.@Stability(value=Stable) @NotNull public String getClassificationStatement()
Copyright © 2023. All rights reserved.