
Google Cloud SparkSubmit
CertifiedSubmit a Spark batch to Dataproc
Google Cloud SparkSubmit
Submit a Spark batch to Dataproc
Runs a Spark batch using Dataproc Serverless or clusters. Provide main class and supporting JARs/files; args are passed to the driver.
type: io.kestra.plugin.gcp.dataproc.batches.SparkSubmitExamples
id: gcp_dataproc_spark_submit
namespace: company.team
tasks:
- id: spark_submit
type: io.kestra.plugin.gcp.dataproc.batches.SparkSubmit
jarFileUris:
- 'gs://spark-jobs-kestra/spark-examples.jar'
mainClass: org.apache.spark.examples.SparkPi
args:
- 1000
name: test-spark
region: europe-west3
Properties
mainClass *Requiredstring
Driver main class
Fully qualified class name; its JAR must be on the classpath or in jarFileUris
name *Requiredstring
Batch name
Base name; a slugified suffix with execution id is appended and truncated to 63 chars
region *Requiredstring
Dataproc region
Region endpoint used for the batch controller
archiveUris array
Archive URIs
HCFS URIs of archives extracted into each executor dir (.jar, .tar, .tar.gz, .tgz, .zip)
args array
Driver arguments
Arguments passed to the driver; avoid options that belong in batch properties (e.g., --conf)
execution
Execution configuration
Network, service account, and KMS settings for the workload
io.kestra.plugin.gcp.dataproc.batches.AbstractBatch-ExecutionConfiguration
KMS key
Cloud KMS key for encryption
Network tags
Applied to workload for network control
Network URI
VPC network URI for the workload
Service account
Email of the service account used to run the batch
Subnetwork URI
Optional subnetwork URI for the workload
fileUris array
File URIs
HCFS URIs copied into each executor working dir (gs://, hdfs://, or file://)
impersonatedServiceAccount string
The GCP service account to impersonate
jarFileUris array
Jar URIs
HCFS URIs of JARs added to driver and executor classpaths
peripherals
Peripherals configuration
Optional Metastore and Spark History Server settings
io.kestra.plugin.gcp.dataproc.batches.AbstractBatch-PeripheralsConfiguration
Metastore service
Resource name of an existing Dataproc Metastore service (projects/{project}/locations/{region}/services/{id})
Spark History Server
Optional Dataproc cluster to serve Spark History for the workload
io.kestra.plugin.gcp.dataproc.batches.AbstractBatch-SparkHistoryServerConfiguration
Spark History Server cluster
Dataproc cluster resource name (projects/{project}/regions/{region}/clusters/{name})
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
projectId string
The GCP project ID
runtime
Runtime configuration
Container image, runtime version, and properties
io.kestra.plugin.gcp.dataproc.batches.AbstractBatch-RuntimeConfiguration
Container image
Optional custom runtime image; defaults to Dataproc image when unset
Runtime properties
Key/value pairs passed to the runtime
Runtime version
Optional Dataproc runtime version string
scopes array
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
Outputs
state string
STATE_UNSPECIFIEDPENDINGRUNNINGCANCELLINGCANCELLEDSUCCEEDEDFAILEDUNRECOGNIZEDBatch state