gcloud alpha dataproc jobs submit

NAME
gcloud alpha dataproc jobs submit - submit Dataproc jobs to execute on a cluster
SYNOPSIS
gcloud alpha dataproc jobs submitCOMMAND[--async][--bucket=BUCKET][--region=REGION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Submit Dataproc jobs to execute on a cluster.
EXAMPLES
To submit a Hadoop MapReduce job, run:
gcloudalphadataprocjobssubmithadoop--clustermy-cluster--jarmy_jar.jar--arg1arg2

To submit a Spark Scala or Java job, run:

gcloudalphadataprocjobssubmitspark--clustermy-cluster--jarmy_jar.jar--arg1arg2

To submit a PySpark job, run:

gcloudalphadataprocjobssubmitpyspark--clustermy-clustermy_script.py--arg1arg2

To submit a Spark SQL job, run:

gcloudalphadataprocjobssubmitspark-sql--clustermy-cluster--filemy_queries.q

To submit a Pig job, run:

gcloudalphadataprocjobssubmitpig--clustermy-cluster--filemy_script.pig

To submit a Hive job, run:

gcloudalphadataprocjobssubmithive--clustermy-cluster--filemy_queries.q
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--bucket=BUCKET
The Cloud Storage bucket to stage files in. Defaults to the cluster's configuredbucket.
--region=REGION
Dataproc region to use. Each Dataproc region constitutes an independent resourcenamespace constrained to deploying instances into Compute Engine zones insidethe region. Overrides the defaultdataproc/region property valuefor this command invocation.
GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
flink
(ALPHA) Submit a Flink job to a cluster.
hadoop
(ALPHA) Submit a Hadoop job to a cluster.
hive
(ALPHA) Submit a Hive job to a cluster.
pig
(ALPHA) Submit a Pig job to a cluster.
presto
(ALPHA) Submit a Presto job to a cluster.
pyspark
(ALPHA) Submit a PySpark job to a cluster.
spark
(ALPHA) Submit a Spark job to a cluster.
spark-r
(ALPHA) Submit a SparkR job to a cluster.
spark-sql
(ALPHA) Submit a Spark SQL job to a cluster.
trino
(ALPHA) Submit a Trino job to a cluster.
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gclouddataprocjobssubmit
gcloudbetadataprocjobssubmit

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-16 UTC.