# Classification

The classification within a EMR Containers application configuration.

Class can be extended to add other classifications.
For example, new Classification('xxx-yyy');

- Source: [`aws-stepfunctions-tasks/lib/emrcontainers/start-job-run.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emrcontainers/start-job-run.ts#L530)
- Type last changed: v2.1.0 · 8 Dec 2021

## Example

```ts
new tasks.EmrContainersStartJobRun(this, 'EMR Containers Start Job Run', {
  virtualCluster: tasks.VirtualClusterInput.fromVirtualClusterId('de92jdei2910fwedz'),
  releaseLabel: tasks.ReleaseLabel.EMR_6_2_0,
  jobName: 'EMR-Containers-Job',
  jobDriver: {
    sparkSubmitJobDriver: {
      entryPoint: sfn.TaskInput.fromText('local:///usr/lib/spark/examples/src/main/python/pi.py'),
    },
  },
  applicationConfig: [{
    classification: tasks.Classification.SPARK_DEFAULTS,
    properties: {
      'spark.executor.instances': '1',
      'spark.executor.memory': '512M',
    },
  }],
});
```

## Initializer

```ts
new Classification(classificationStatement: string)
```

## Properties

- `classificationStatement`: string (required) — A literal string in case a new EMR classification is released, if not already defined.

- `SPARK`: [Classification](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.Classification.html) (required) (static) — 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:

- `SPARK_DEFAULTS`: [Classification](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.Classification.html) (required) (static) — Sets values in the spark-defaults.conf file.

  For more info:

- `SPARK_ENV`: [Classification](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.Classification.html) (required) (static) — Sets values in the spark-env.sh file.

  For more info:

- `SPARK_HIVE_SITE`: [Classification](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.Classification.html) (required) (static) — Sets values in the hive-site.xml for Spark.

- `SPARK_LOG4J`: [Classification](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.Classification.html) (required) (static) — Sets values in the log4j.properties file.

  For more settings and info:

- `SPARK_METRICS`: [Classification](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.Classification.html) (required) (static) — Sets values in the metrics.properties file.

  For more settings and info:
