בקטלוג הייעודי לזמן ריצה של Lakehouse, אתם יכולים למחוק נקודות קצה של קטלוגים כדי לבטל את הרישום של נקודות הקצה לניהול המטא-נתונים שלהם ב-Lakehouse ללא גבולות.
כשמוחקים נקודת קצה של קטלוג, היא נמחקת מ-Lakehouse, אבל הקטגוריה הבסיסית של Cloud Storage או קובצי הנתונים שמאוחסנים בה לא נמחקים באופן אוטומטי. אי אפשר למחוק נקודת קצה של קטלוג שעדיין מכילה מרחבי שמות או טבלאות.
לפני שמתחילים
- במאמר מידע על קטלוג ייעודי לזמן ריצה ב-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.
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, if it is not already enabled.
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: מזהה הקטלוג. -
PROJECT_ID: מזהה הפרויקט ב- Google Cloud .
REST
כדי למחוק נקודת קצה לניהול קטלוגים באמצעות ה-API בארכיטקטורת REST, שולחים בקשת DELETE לנקודת הקצה DeleteIcebergCatalog:
DELETE /iceberg/v1/restcatalog/extensions/projects/PROJECT_ID/catalogs/CATALOG_ID
מחליפים את מה שכתוב בשדות הבאים:
-
PROJECT_ID: מזהה הפרויקט ב- Google Cloud. -
CATALOG_ID: מזהה הקטלוג.