Dataproc Metastore を有効または無効にする

このページでは、 Google Cloud プロジェクトで Dataproc Metastore を有効または無効にする方法について説明します。Service Usage API の詳細については、サービスの有効化と無効化をご覧ください。

準備

必要なロール

Dataproc Metastore API を有効または無効にするために必要な権限を取得するには、プロジェクトに対する Service Usage 管理者 roles/serviceusage.serviceUsageAdmin)IAM ロールの付与を管理者に依頼してください。ロールの付与については、プロジェクト、フォルダ、組織に対するアクセス権の管理をご覧ください。

この事前定義ロールには、Dataproc Metastore API の有効化と無効化に必要な権限が含まれています。必要とされる正確な権限については、「必要な権限」セクションを開いてご確認ください。

必要な権限

Dataproc Metastore API を有効または無効にするには、次の権限が必要です。

  • serviceusage.services.disable
  • serviceusage.services.enable

カスタムロールや他の事前定義ロールを使用して、これらの権限を取得することもできます。

Dataproc Metastore の特定のロールと権限については、Dataproc Metastore IAM の概要をご覧ください。

Dataproc Metastore を有効にする

既存の Google Cloud プロジェクトを Dataproc Metastore で使用するか、新しいプロジェクトを作成することが可能です。どちらの場合も、課金と Dataproc Metastore API を有効にする必要があります。

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

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  2. Verify that billing is enabled for your Google Cloud project.

  3. Enable the Dataproc Metastore API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  4. Dataproc Metastore を無効にする

    Dataproc Metastore API を無効にする前に、すべてのメタストア サービスを削除してください。サービスが実行中、またはまだ存在しているときに API を無効にすることはできません。

    Dataproc Metastore API を無効にする手順は次のとおりです。

    1. Google Cloud コンソールで、Dataproc Metastore API が含まれているプロジェクトを選択します。
    2. Dataproc Metastore の [API の概要] ページに移動します。
    3. [管理] をクリックします。
    4. [API を無効にする] をクリックします。

    次のステップ