カタログ(Apache Iceberg REST カタログや Apache Hive カタログなど)に Namespace を作成すると、Lakehouse ランタイム カタログ内のテーブルを整理できます。
始める前に
- 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 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.
必要なロール
Namespace の作成に必要な権限を取得するには、プロジェクトに対する次の IAM ロールを付与するよう管理者に依頼してください。
-
すべて:
- BigLake 管理者 (
roles/biglake.admin) - ストレージ管理者 (
roles/storage.admin)
- BigLake 管理者 (
ロールの付与については、プロジェクト、フォルダ、組織へのアクセス権の管理をご覧ください。
必要な権限は、カスタムロールや他の事前定義ロールから取得することもできます。
名前空間の作成
カタログ内に Namespace を作成します。
考慮事項
名前空間を作成するときに、名前空間に関連付ける Cloud Storage バケットまたはパスを必要に応じて指定できます。
- 複数バケット(
bl://)カタログ(推奨): カタログ(default_locationまたはrestricted_locations)で許可されているロケーションの下にある限り、任意のカスタム ロケーションを設定できます。ロケーションを指定しない場合、名前空間はカタログのデフォルトの場所(gs://{default_location}/{namespace_name}など)の下に作成されます。 単一バケット(
gs://)カタログ: Namespace のロケーションは、カタログの単一バケットから自動的に継承されます。
コンソール
Google Cloud コンソールで、[Lakehouse] ページを開きます。
既存のカタログを選択するか、まだ作成していない場合は新しいカタログを作成します。
メニューバーで、[+ Namespace を作成] をクリックします。
[Namespace name] に、Namespace の一意の名前を入力します。
[ロケーション] で、必要に応じて、名前空間に関連付ける Cloud Storage バケットまたはパスを指定します。ロケーションがウェアハウス バケットと一致している。
[作成] をクリックします。
Namespace が作成され、カタログの詳細リストに表示されます。
gcloud
マルチバケット(