Skip to content
v2.274.0

JobDriver Struct ​

Specify the driver that the EMR Containers job runs on.

The job driver is used to provide an input for the job that will be run.

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',
    },
  }],
});

Properties ​

sparkSubmitJobDriverSparkSubmitJobDriverspark_submit_job_driverSparkSubmitJobDriversparkSubmitJobDriverSparkSubmitJobDriverSparkSubmitJobDriverSparkSubmitJobDriverSparkSubmitJobDriverSparkSubmitJobDriverrequired#
The job driver parameters specified for spark submit.