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

このページでは、 プロジェクト向けに Dataproc メタストアを有効または無効にする方法を説明します。 Google Cloud 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. アカウントにログインします。 Google Cloud を初めて使用する場合は、 アカウントを作成して、実際のシナリオで Google プロダクトのパフォーマンスを評価してください。 Google Cloud新規のお客様には、ワークロードの実行、テスト、デプロイができる無料クレジット $300 分を差し上げます。
  2. 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 role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

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

  4. 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

  5. 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 role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

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

  7. 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

Dataproc Metastore を無効にする

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

Dataproc Metastore API を無効にするには、次の操作を行います。

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

次のステップ