Azure SparkBatchJobCreate

Azure SparkBatchJobCreate

Certified

Submit Spark batch to Synapse pool

Creates and submits a Spark batch job to an Azure Synapse Analytics Spark pool using the workspace endpoint, pool name, and optional resource overrides. Requires valid Azure credentials with permission to submit Spark jobs.

yaml
type: io.kestra.plugin.azure.synapse.SparkBatchJobCreate
yaml
id: azure_synapse_spark_batch
namespace: company.team

tasks:
  - id: spark_job
    type: io.kestra.plugin.azure.synapse.SparkBatchJobCreate
    endpoint: "https://myworkspace.dev.azuresynapse.net"
    sparkPoolName: "mysparkpool"
    tenantId: "{{ secret('AZURE_TENANT_ID') }}"
    clientId: "{{ secret('AZURE_CLIENT_ID') }}"
    clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
    name: "WordCount"
    file: "abfss://data@mystorage.dfs.core.windows.net/jars/wordcount.jar"
    className: "org.example.WordCount"
    arguments:
      - "abfss://data@mystorage.dfs.core.windows.net/input/shakespeare.txt"
      - "abfss://data@mystorage.dfs.core.windows.net/output/"
    driverMemory: "28g"
    driverCores: 4
    executorMemory: "28g"
    executorCores: 4
    executorCount: 2
Properties

Synapse workspace endpoint

Workspace URL in the form https://{workspace}.dev.azuresynapse.net.

Main application file

Path to the main application file (JAR, Python, etc.) in ADLS Gen2 storage in the form abfss://{container}@{storage-account}.dfs.core.windows.net/path/to/file.

Spark batch job name

Spark pool name

Name of the Spark pool where the batch job will be submitted.

Azure AD tenant ID (GUID)

SubTypestring

Archives

Archives to be used in the job.

SubTypestring

Command line arguments

Arguments passed to the main method.

Main class name

Fully qualified class name for Java/Scala Spark jobs.

Client ID of the Azure AD application

Application (client) ID used for service principal authentication.

Client secret for the Azure AD application

Secret value associated with the client ID; store in a Kestra secret.

Spark configuration

Spark configuration properties for the job.

Driver cores

Number of cores for the driver process.

Driver memory

Memory for the driver process (e.g., 28g).

Executor cores

Number of cores per executor.

Executor count

Number of executor processes to launch.

Executor memory

Memory per executor process (e.g., 28g).

SubTypestring

Additional files

Additional files to be used in the job.

SubTypestring

Additional JAR files

Additional JARs to be used in the job.

PEM-encoded certificate content for client authentication

PEM text for certificate-based auth; alternative to clientSecret.

Reference (ref) of the pluginDefaults to apply to this task.

SubTypestring

Additional Python files

Additional Python files to be used in the job.

Tags

Tags to associate with the job.

Spark application ID

Spark batch job ID

Spark batch job state

Possible states: not_started, starting, running, idle, busy, shutting_down, error, dead, killed, success.