카탈로그 네임스페이스 (예: Apache Iceberg REST 카탈로그 또는 Apache Hive 카탈로그)를 삭제하면 시스템에서 레이크하우스 런타임 카탈로그에서 네임스페이스를 등록 해제합니다.
이렇게 하면 Lakehouse for Apache Iceberg에서 네임스페이스가 삭제되지만 기본 Cloud Storage 버킷이나 저장된 데이터 파일은 자동으로 삭제되지 않습니다.
네임스페이스에 테이블이 포함되어 있지 않으면 삭제할 수 있습니다.
시작하기 전에
- 레이크하우스 런타임 카탈로그 정보를 읽고 레이크하우스 런타임 카탈로그의 작동 방식과 서비스의 제한사항을 알아보세요.
- 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.
필요한 역할
네임스페이스를 삭제하는 데 필요한 권한을 얻으려면 관리자에게 프로젝트에 대한 다음 IAM 역할을 부여해 달라고 요청하세요.
-
전체:
- BigLake 관리자 (
roles/biglake.admin) - 스토리지 관리자 (
roles/storage.admin)
- BigLake 관리자 (
역할 부여에 대한 자세한 내용은 프로젝트, 폴더, 조직에 대한 액세스 관리를 참조하세요.
커스텀 역할이나 다른 사전 정의된 역할을 통해 필요한 권한을 얻을 수도 있습니다.
네임스페이스 삭제
카탈로그에서 네임스페이스를 삭제합니다.
콘솔
Google Cloud 콘솔에서 Lakehouse 페이지로 이동합니다.
삭제할 네임스페이스가 포함된 카탈로그를 선택합니다.
삭제할 네임스페이스의 행에서 네임스페이스 작업 더보기 > 삭제를 클릭합니다.
삭제 대화상자에서
DELETE을 입력하고 삭제를 클릭합니다.
gcloud
gcloud를 사용하여 네임스페이스를 삭제하려면 gcloud biglake iceberg namespaces delete 명령어를 실행합니다.
gcloud biglake iceberg namespaces delete NAMESPACE_NAME \ --project="PROJECT_ID" \ --catalog="CATALOG_ID"
다음을 바꿉니다.
NAMESPACE_NAME: 네임스페이스의 이름입니다.PROJECT_ID: Google Cloud 프로젝트 ID입니다.CATALOG_ID: 카탈로그의 ID입니다.
REST
REST API를 사용하여 네임스페이스를 삭제하려면 DeleteIcebergNamespace 엔드포인트에 DELETE 요청을 수행합니다.
DELETE /iceberg/v1/restcatalog/v1/projects/PROJECT_ID/catalogs/CATALOG_ID/namespaces/NAMESPACE_NAME
다음을 바꿉니다.
PROJECT_ID: Google Cloud 프로젝트 ID입니다.CATALOG_ID: 카탈로그의 ID입니다.NAMESPACE_NAME: 카탈로그 네임스페이스의 이름입니다.