Quando elimini un catalogo (ad esempio un catalogo REST Apache Iceberg o un catalogo Apache Hive), il sistema annulla la registrazione dell'endpoint di gestione dei metadati dal catalogo runtime Lakehouse.
Sebbene questa operazione rimuova il catalogo da Lakehouse per Apache Iceberg, non elimina automaticamente il bucket Cloud Storage sottostante o i file di dati archiviati. Non puoi eliminare un catalogo che contiene ancora spazi dei nomi o tabelle.
Prima di iniziare
- Leggi Informazioni sul catalogo runtime Lakehouse per capire come funziona il catalogo runtime Lakehouse e i limiti del servizio.
- 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 serviceusage.services.enable permission. If you
created the project, then you likely already have this permission through the
Owner role (roles/owner). Otherwise, you can get this permission through the
Service Usage Admin role (roles/serviceusage.serviceUsageAdmin).
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 serviceusage.services.enable permission. If you
created the project, then you likely already have this permission through the
Owner role (roles/owner). Otherwise, you can get this permission through the
Service Usage Admin role (roles/serviceusage.serviceUsageAdmin).
Learn how to grant roles.
Ruoli obbligatori
Per ottenere le autorizzazioni necessarie per eliminare un catalogo, chiedi all'amministratore di concederti i seguenti ruoli IAM nel progetto:
-
Tutti:
- Amministratore BigLake (
roles/biglake.admin) - Amministratore spazio di archiviazione (
roles/storage.admin)
- Amministratore BigLake (
Per saperne di più sulla concessione dei ruoli, consulta Gestisci l'accesso a progetti, cartelle e organizzazioni.
Potresti anche riuscire a ottenere le autorizzazioni richieste tramite i ruoli personalizzati o altri ruoli predefiniti.
Elimina un catalogo
Elimina un endpoint del catalogo.
Console
Nella Google Cloud console, apri la pagina Lakehouse.
Nella riga del catalogo che stai eliminando, fai clic su Altre azioni del catalogo > Elimina.
Nella finestra di dialogo di eliminazione, inserisci
DELETEe fai clic su Elimina.
gcloud
Per eliminare un catalogo utilizzando gcloud, esegui il gcloud biglake iceberg catalogs delete comando.
gcloud biglake iceberg catalogs delete CATALOG_ID \ --project="PROJECT_ID"
Sostituisci quanto segue:
CATALOG_ID: l'ID del catalogo.PROJECT_ID: l' Google Cloud ID progetto.
REST
Per eliminare un endpoint di gestione del catalogo utilizzando l'API REST, invia una DELETE
richiesta all'DeleteIcebergCatalog endpoint:
DELETE /iceberg/v1/restcatalog/extensions/projects/PROJECT_ID/catalogs/CATALOG_ID
Sostituisci quanto segue:
PROJECT_ID: l' Google Cloud ID progetto.CATALOG_ID: l'ID del catalogo.