カタログ(Apache Iceberg REST カタログや Apache Hive カタログなど)を削除すると、システムは Lakehouse ランタイム カタログからメタデータ管理エンドポイントの登録を解除します。
これにより、カタログは Lakehouse for Apache Iceberg から削除されますが、基盤となる Cloud Storage バケットや保存されたデータファイルは自動的に削除されません。
始める前に
- Lakehouse ランタイム カタログについてを読んで、Lakehouse ランタイム カタログの仕組みとサービスの制限事項を確認します。
- 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 theresourcemanager.projects.createpermission. Learn how to grant roles. - 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 theresourcemanager.projects.createpermission. Learn how to grant roles.
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
Verify that billing is enabled for your Google Cloud project.
Enable the BigLake 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.
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
Verify that billing is enabled for your Google Cloud project.
Enable the BigLake 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.
必要なロール
カタログの削除に必要な権限を取得するには、プロジェクトに対する次の IAM ロールを付与するよう管理者に依頼してください。
-
すべて:
- BigLake 管理者 (
roles/biglake.admin) - ストレージ管理者 (
roles/storage.admin)
- BigLake 管理者 (
ロールの付与については、プロジェクト、フォルダ、組織へのアクセス権の管理をご覧ください。
必要な権限は、カスタムロールや他の事前定義ロールから取得することもできます。
カタログを削除する
カタログ エンドポイントを削除します。
コンソール
Google Cloud コンソールで、[Lakehouse] ページを開きます。
削除するカタログの行で、 [その他のカタログ操作] > [削除] をクリックします。
削除ダイアログで「
DELETE」と入力し、[削除] をクリックします。
gcloud
gcloud を使用してカタログを削除するには、gcloud biglake iceberg catalogs delete コマンドを実行します。
gcloud biglake iceberg catalogs delete CATALOG_ID \ --project="PROJECT_ID"
次のように置き換えます。
CATALOG_ID: カタログの ID。PROJECT_ID: 実際の Google Cloud プロジェクト ID。
REST
REST API を使用してカタログ管理エンドポイントを削除するには、DeleteIcebergCatalog エンドポイントに DELETE リクエストを行います。
DELETE /iceberg/v1/restcatalog/extensions/projects/PROJECT_ID/catalogs/CATALOG_ID
次のように置き換えます。
PROJECT_ID: 実際の Google Cloud プロジェクト ID。CATALOG_ID: カタログの ID。