gcloud metastore federations update (FEDERATION : --location=LOCATION) (--update-backends=RANK=BACKEND --clear-backends | --remove-backends=RANK) [--async] [--update-labels=[KEY=VALUE,…]] [--clear-labels | --remove-labels=[KEY,…]] [GCLOUD_WIDE_FLAG …]
If run asynchronously with --async, exits after printing one
operation name that can be used to poll the status of the update via:
gcloud metastore operations describe
my-metastore-federation in location us-central with
two backends dpms1 and dpms2, run:
gcloud metastore federations update my-metastore-federation --location=us-central1 --update-backends=1=dpms:dpms1,2=dpms:projects/my-project/locations/us-central1/services/dpms2
To set the project attribute:
federation on the command line with a fully
specified name;
--project on the command line;
core/project.
FEDERATION
To set the federation attribute:
federation on the command line.
--location=LOCATIONdefault metastore/location.
To set the location attribute:
federation on the command line with a fully
specified name;
--location on the command line;
metastore/location.
--update-backends=RANK=BACKENDRANK=BACKEND pairs. For example:
1=dpms:dpms1,2=dpms:projects/my-project/locations/us-central1/services/dpms2.
RANK represents the rank of the backend metastore and is used to
resolve database name collisions. BACKEND is specified as
METASTORE_TYPE:METASTORE_NAME where METASTORE_TYPE is
the type of backend metastore and METASTORE_NAME is the relative
resource name of the metastore. If only the name of the metastore is specified
(e.g. dpms1), project and location will be inferred from the
project and location used to create the federation.
--clear-backends--clear-backends must be used
with --update-backends.
--remove-backends=RANKRANK1,RANK2. The Key represents the rank of the backend metastore
and is used to resolve database name collisions. If a RANK does not
exist then it is sliently ignored. If --update-backends is also
specified, then --remove-backends is applied first.
--async--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 metastore federations update --clear-labels
To remove all existing labels and create two new labels,
and
foo:
baz
gcloud metastore federations 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.
metastore/v1 API. The full documentation for
this API can be found at: https://cloud.google.com/dataproc-metastore/docs
gcloud alpha metastore federations updategcloud beta metastore federations 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.