This page explains how to enable or disable Dataproc Metastore for your Google Cloud project. For more information about the Service Usage API, see Enabling and disabling services.
Before you begin
Required Roles
To get the permissions that you need to enable and disable the Dataproc Metastore API,
ask your administrator to grant you the
Service Usage Administrator (roles/serviceusage.serviceUsageAdmin
) IAM role on your project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
This predefined role contains the permissions required to enable and disable the Dataproc Metastore API. To see the exact permissions that are required, expand the Required permissions section:
Required permissions
The following permissions are required to enable and disable the Dataproc Metastore API:
-
serviceusage.services.disable
-
serviceusage.services.enable
You might also be able to get these permissions with custom roles or other predefined roles.
For more information about specific Dataproc Metastore roles and permissions, see Dataproc Metastore IAM overview.Enable Dataproc Metastore
You can use an existing Google Cloud project with Dataproc Metastore or create a new one. In both cases, you need to enable billing and the Dataproc Metastore API.
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Dataproc Metastore API.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Dataproc Metastore API.
Disable Dataproc Metastore
Before you disable the Dataproc Metastore API, make sure you Delete all of your metastore services. You can't disable the API while a service is running or still exists.
To disable the Dataproc Metastore API, follow these steps:
- In the Google Cloud console, select the project that contains the Dataproc Metastore API.
- Go to the Dataproc Metastore API overview page.
- Click Manage.
- Click Disable API.