Il recupero delle proprietà di configurazione espone i metadati per Lakehouse for Apache Iceberg.
All'interno del catalogo runtime lakehouse, l'ispezione di un catalogo esistente (ad esempio un catalogo REST Apache Iceberg o Apache Hive) ne rivela i dettagli. Per i cataloghi REST di Apache Iceberg, sono inclusi l'URI del catalogo REST richiesto per le connessioni client, il metodo di autenticazione e il service account associato.
Prima di iniziare
- Leggi l'articolo 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 visualizzare i dettagli del catalogo, chiedi all'amministratore di concederti i seguenti ruoli IAM nel progetto:
-
Tutte:
- BigLake Admin (
roles/biglake.admin) - Storage Admin (
roles/storage.admin)
- BigLake Admin (
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.
Ottieni dettagli catalogo
Ispeziona la configurazione e le proprietà del catalogo.
Console
Nella console Google Cloud , apri la pagina Lakehouse.
Fai clic sul nome di un catalogo.
Nella pagina Dettagli catalogo, esplora le informazioni sul catalogo, ad esempio ID catalogo, timestamp di creazione, URI catalogo REST, metodo di autenticazione e account di servizio.
gcloud
Per descrivere un catalogo utilizzando gcloud, esegui il comando gcloud biglake iceberg catalogs describe.
gcloud biglake iceberg catalogs describe CATALOG_ID \ --project="PROJECT_ID"
Sostituisci quanto segue:
CATALOG_ID: l'ID del catalogo.PROJECT_ID: il tuo ID progetto Google Cloud .
REST
Per recuperare i dettagli e la configurazione del catalogo utilizzando l'API REST, invia una richiesta GET
all'endpoint GetIcebergCatalog:
GET /iceberg/v1/restcatalog/extensions/projects/PROJECT_ID/catalogs/CATALOG_ID
La risposta contiene un oggetto JSON IcebergCatalog che descrive la configurazione del catalogo.
Sostituisci quanto segue:
PROJECT_ID: il tuo ID progetto Google Cloud .CATALOG_ID: l'ID del catalogo.