Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Esta página explica como ativar ou desativar o metastore do Dataproc para seu projeto Google Cloud . Para mais informações sobre a API Service Usage,
consulte Como ativar e desativar serviços.
Para receber as permissões necessárias para
ativar e desativar a API Dataproc Metastore,
peça ao administrador para conceder a você o
papel do IAM de Administrador do Service Usage (roles/serviceusage.serviceUsageAdmin)
no seu projeto.
Para mais informações sobre a concessão de papéis, consulte Gerenciar o acesso a projetos, pastas e organizações.
Esse papel predefinido contém
as permissões necessárias para ativar e desativar a API Metastore do Dataproc. Para conferir as permissões exatas
necessárias, expanda a seção Permissões necessárias:
Permissões necessárias
As permissões a seguir são necessárias para ativar e desativar a API metastore do Dataproc:
É possível usar um projeto Google Cloud atual com a metastore do Dataproc
ou criar um novo. Nos dois casos, você precisa ativar o faturamento e a API metastore do Dataproc.
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.
Antes de desativar a API metastore do Dataproc, exclua todos os serviços de metastore.
Não é possível desativar a API enquanto um serviço estiver em execução ou ainda existir.
Para desativar a API metastore do Dataproc, siga estas etapas:
No console Google Cloud , selecione o projeto que contém a API Metastore do Dataproc.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-27 UTC."],[[["\u003cp\u003eThis page outlines the process for enabling and disabling the Dataproc Metastore API in a Google Cloud project.\u003c/p\u003e\n"],["\u003cp\u003eEnabling the Dataproc Metastore API requires billing to be enabled on the project, as well as the API itself.\u003c/p\u003e\n"],["\u003cp\u003eDisabling the Dataproc Metastore API requires the deletion of all metastore services and any associated Cloud Storage buckets beforehand.\u003c/p\u003e\n"],["\u003cp\u003eTo enable or disable the API, you must have the Service Usage Administrator role, which grants the \u003ccode\u003eserviceusage.services.disable\u003c/code\u003e and \u003ccode\u003eserviceusage.services.enable\u003c/code\u003e permissions, or the equivalent permissions with a custom role.\u003c/p\u003e\n"]]],[],null,["# Enable and disable Dataproc Metastore\n\nThis page explains how to enable or disable Dataproc Metastore\nfor your Google Cloud project. For more information about the Service Usage API,\nsee [Enabling and disabling services](/service-usage/docs/enable-disable).\n\nBefore you begin\n----------------\n\n- [Understand How Dataproc Metastore works](/dataproc-metastore/docs/overview).\n\n### Required Roles\n\n\nTo get the permissions that\nyou need to enable and disable the Dataproc Metastore API,\n\nask your administrator to grant you the\n\n\n[Service Usage Administrator](/iam/docs/roles-permissions/serviceusage#serviceusage.serviceUsageAdmin) (`roles/serviceusage.serviceUsageAdmin`)\nIAM role on your project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nThis predefined role contains\n\nthe permissions required to enable and disable the Dataproc Metastore API. To see the exact permissions that are\nrequired, expand the **Required permissions** section:\n\n\n#### Required permissions\n\nThe following permissions are required to enable and disable the Dataproc Metastore API:\n\n- ` serviceusage.services.disable `\n- ` serviceusage.services.enable`\n\n\nYou might also be able to get\nthese permissions\nwith [custom roles](/iam/docs/creating-custom-roles) or\nother [predefined roles](/iam/docs/roles-overview#predefined).\nFor more information about specific Dataproc Metastore roles and permissions, see [Dataproc Metastore IAM overview](/dataproc-metastore/docs/iam-and-access-control).\n\n\u003cbr /\u003e\n\nEnable Dataproc Metastore\n-------------------------\n\nYou can use an existing Google Cloud project with Dataproc Metastore\nor create a new one. In both cases, you need to enable billing and the\nDataproc Metastore API.\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Dataproc Metastore API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=metastore.googleapis.com)\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Dataproc Metastore API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=metastore.googleapis.com)\n\n\u003cbr /\u003e\n\nDisable Dataproc Metastore\n--------------------------\n\nBefore you disable the Dataproc Metastore API, make sure you\n[Delete all of your metastore services](/dataproc-metastore/docs/delete-service).\nYou can't disable the API while a service is running or still exists.\n| **Note:** To avoid charges, delete all Cloud Storage buckets for your services. You can delete your services before or after disabling the API.\n\nTo disable the Dataproc Metastore API, follow these steps:\n\n1. In the Google Cloud console, select the project that contains the Dataproc Metastore API.\n2. Go to the Dataproc Metastore [API overview page](https://console.cloud.google.com/apis/library/metastore.googleapis.com).\n3. Click **Manage**.\n4. Click **Disable API**.\n\nWhat's next\n-----------\n\n- [Quickstart for deploying Dataproc Metastore](/dataproc-metastore/docs/create-service-cluster)\n- [Create a service](/dataproc-metastore/docs/create-service)\n- [Service access](/dataproc-metastore/docs/access-service)"]]