Enable and disable Dataproc Metastore

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.

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.

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Dataproc Metastore API.

    Enable the API

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. Enable the Dataproc Metastore API.

    Enable the 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:

  1. In the Google Cloud console, select the project that contains the Dataproc Metastore API.
  2. Go to the Dataproc Metastore API overview page.
  3. Click Manage.
  4. Click Disable API.

What's next