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

このページでは、Google Cloud プロジェクト向けに Dataproc メタストアを有効または無効にする方法を説明します。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 を有効にする

Dataproc Metastore で既存の Google Cloud プロジェクトを使用することも、新しいプロジェクトを作成することもできます。どちらの場合も、課金と 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. Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。

    プロジェクト セレクタに移動

  3. Google Cloud プロジェクトで課金が有効になっていることを確認します

  4. Enable the Dataproc Metastore API.

    Enable the API

  5. Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。

    プロジェクト セレクタに移動

  6. Google Cloud プロジェクトで課金が有効になっていることを確認します

  7. Enable the Dataproc Metastore API.

    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 を無効にする] をクリックします。

次のステップ