
Google Cloud PySparkSubmit
CertifiedSubmit a PySpark batch to Dataproc
Google Cloud PySparkSubmit
Submit a PySpark batch to Dataproc
Runs a PySpark batch from a main Python file; supports extra JARs, files, archives, and args.
type: io.kestra.plugin.gcp.dataproc.batches.PySparkSubmitExamples
id: gcp_dataproc_py_spark_submit
namespace: company.team
tasks:
- id: py_spark_submit
type: io.kestra.plugin.gcp.dataproc.batches.PySparkSubmit
mainPythonFileUri: 'gs://spark-jobs-kestra/pi.py'
name: test-pyspark
region: europe-west3
Properties
mainPythonFileUri *Requiredstring
Main Python file URI
HCFS URI to the driver .py file (gs://, hdfs://, or file://)
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