La creazione di uno spazio dei nomi in un catalogo (ad esempio un catalogo REST Apache Iceberg o un catalogo Apache Hive) ti aiuta a organizzare le tabelle all'interno del catalogo runtime Lakehouse.
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 creare uno spazio dei nomi, chiedi all'amministratore di concederti i seguenti ruoli IAM per il progetto:
-
Tutti:
- Amministratore BigLake (
roles/biglake.admin) - Storage Admin (
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.
Crea uno spazio dei nomi
Crea uno spazio dei nomi all'interno di un catalogo.
Considerazioni
Quando crei uno spazio dei nomi, puoi facoltativamente specificare un bucket Cloud Storage o un percorso da associare allo spazio dei nomi:
- Catalogo con più bucket (consigliato): puoi impostare qualsiasi
località personalizzata, purché si trovi in una località consentita dal catalogo
(
default_locationorestricted_locations). Se non specifichi una località, lo spazio dei nomi viene creato nella località predefinita del catalogo (ad esempio,gs://{default_location}/{namespace_name}).