Saat Anda menghapus katalog (seperti katalog REST Apache Iceberg atau katalog Apache Hive), sistem akan membatalkan pendaftaran endpoint pengelolaan metadata dari katalog runtime Lakehouse.
Meskipun tindakan ini menghapus katalog dari Lakehouse untuk Apache Iceberg, tindakan ini tidak akan menghapus bucket Cloud Storage yang mendasarinya atau file data yang disimpan secara otomatis.
Sebelum memulai
- Baca Tentang katalog runtime Lakehouse untuk memahami cara kerja katalog runtime Lakehouse dan batasan untuk layanan ini.
- 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.
Peran yang diperlukan
Untuk mendapatkan izin yang Anda perlukan untuk menghapus katalog, minta administrator untuk memberi Anda peran IAM berikut di project Anda:
-
Semua:
- Admin BigLake (
roles/biglake.admin) - Storage Admin (
roles/storage.admin)
- Admin BigLake (
Untuk mengetahui informasi selengkapnya tentang pemberian peran, lihat Mengelola akses ke project, folder, dan organisasi.
Anda mungkin juga bisa mendapatkan izin yang diperlukan melalui peran khusus atau peran bawaan lainnya.
Menghapus katalog
Menghapus endpoint katalog.
Konsol
Di konsol Google Cloud , buka halaman Lakehouse.
Di baris katalog yang Anda hapus, klik Tindakan katalog lainnya > Hapus.
Dalam dialog hapus, masukkan
DELETE, lalu klik Hapus.
gcloud
Untuk menghapus katalog menggunakan gcloud, jalankan perintah gcloud biglake iceberg catalogs delete.
gcloud biglake iceberg catalogs delete CATALOG_ID \ --project="PROJECT_ID"
Ganti kode berikut:
CATALOG_ID: ID katalog Anda.PROJECT_ID: Google Cloud Project ID Anda.
REST
Untuk menghapus endpoint pengelolaan katalog menggunakan REST API, buat permintaan DELETE
ke endpoint DeleteIcebergCatalog:
DELETE /iceberg/v1/restcatalog/extensions/projects/PROJECT_ID/catalogs/CATALOG_ID
Ganti kode berikut:
PROJECT_ID: Google Cloud Project ID Anda.CATALOG_ID: ID katalog Anda.