gcloud beta dataproc jobs update (JOB : --region=REGION) (--update-labels=[KEY=VALUE,…] --clear-labels | --remove-labels=[KEY,…]) [GCLOUD_WIDE_FLAG …]
(BETA) Update the labels for a job.
gcloud beta dataproc jobs update job_id --update-labels=customer=acmeTo update the label 'customer=ackme' to 'customer=acme', run:
gcloud beta dataproc jobs update job_id --update-labels=customer=acmeTo remove the label whose key is 'customer', run:
gcloud beta dataproc jobs update job_id --remove-labels=customer
To set the project attribute:
job on the command line with a fully specified
name;
--project on the command line;
core/project.
JOB
To set the job attribute:
job on the command line.
--region=REGIONdataproc/region property
value for this command invocation.
To set the region attribute:
job on the command line with a fully specified
name;
--region on the command line;
dataproc/region.
--update-labels=[KEY=VALUE,…]-), underscores (_), lowercase characters, and
numbers. Values must contain only hyphens (-), underscores
(_), lowercase characters, and numbers.
--clear-labels--update-labels is also specified then
--clear-labels is applied first.
For example, to remove all labels:
gcloud beta dataproc jobs update --clear-labels
To remove all existing labels and create two new labels,
and
foo:
baz
gcloud beta dataproc jobs update --clear-labels --update-labels foo=bar,baz=qux--remove-labels=[KEY,…]--update-labels is also specified then
--update-labels is applied first.
--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud dataproc jobs updategcloud alpha dataproc jobs update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.