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