Enable and disable Dataproc Metastore

This page explains how to enable or disable Dataproc Metastore for your Google Cloud project. For information about service usage on Google Cloud, see Enabling and disabling services.

Before you begin

Required Roles

To get the permissions that you need to to enable and disable the Dataproc Metastore API, ask your administrator to grant you the following IAM roles on your project. You might not them all, depending on the level of access you require:

  • Service Usage editor (roles/editor)
  • Service Usage editor (roles/owner)
  • Service Usage admin (roles/serviceusage.serviceUsageAdmin)

For more information about granting roles, see Manage access.

These predefined roles contain the permissions required to to enable and disable the Dataproc Metastore API. To see the exact permissions that are required, expand the Required permissions section:

Required permissions

  • 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 Manage Dataproc access with IAM.

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 Cloud project. Learn how to check if billing is enabled on a 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 Cloud project. Learn how to check if billing is enabled on a 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 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