Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Auf dieser Seite wird erläutert, wie Sie Dataproc Metastore für Ihr Google Cloud -Projekt aktivieren oder deaktivieren. Weitere Informationen zur Service Usage API finden Sie unter Dienste aktivieren und deaktivieren.
Bitten Sie Ihren Administrator, Ihnen die IAM-Rolle Service Usage Administrator (roles/serviceusage.serviceUsageAdmin) für Ihr Projekt zuzuweisen, um die Berechtigungen zu erhalten, die Sie zum Aktivieren und Deaktivieren der Dataproc Metastore API benötigen.
Weitere Informationen zum Zuweisen von Rollen finden Sie unter Zugriff auf Projekte, Ordner und Organisationen verwalten.
Diese vordefinierte Rolle enthält die Berechtigungen, die zum Aktivieren und Deaktivieren der Dataproc Metastore API erforderlich sind. Erweitern Sie den Abschnitt Erforderliche Berechtigungen, um die erforderlichen Berechtigungen anzuzeigen:
Erforderliche Berechtigungen
Die folgenden Berechtigungen sind erforderlich, um die Dataproc Metastore API zu aktivieren und zu deaktivieren:
Sie können ein vorhandenes Google Cloud Projekt mit Dataproc Metastore verwenden oder ein neues erstellen. In beiden Fällen müssen Sie die Abrechnung und die Dataproc Metastore API aktivieren.
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.
Bevor Sie die Dataproc Metastore API deaktivieren, müssen Sie alle Ihre Metastore-Dienste löschen.
Sie können die API nicht deaktivieren, während ein Dienst ausgeführt wird oder noch vorhanden ist.
So deaktivieren Sie die Dataproc Metastore API:
Wählen Sie in der Google Cloud Console das Projekt aus, das die Dataproc Metastore API enthält.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)"]]