ניהול משאבים בקטלוג REST של Iceberg

הקטלוג הייעודי לזמן ריצה של Lakehouse מאפשר לכם לנהל נקודות קצה של קטלוגים ב-Lakehouse ללא גבולות. אתם יכולים להשתמש במסוף Google Cloud או ב-API בארכיטקטורת REST כדי ליצור, להגדיר ולנטר את נקודות הקצה של הקטלוג האלה, וכך ליצור את שכבת המטא-נתונים שנדרשת לחיבורים למנוע השאילתות.

לפני שמתחילים

  1. כדאי לקרוא את המאמר מידע על קטלוג זמן הריצה של Lakehouse כדי להבין איך קטלוג זמן הריצה של Lakehouse פועל ומהן המגבלות של השירות.
  2. נכנסים לחשבון Google Cloud . אנחנו ממליצים למשתמשים חדשים ב- Google Cloud ליצור חשבון כדי שיוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.

    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

    • 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

    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.

    Enable the API

    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

    • 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

    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.

    Enable the API

התפקידים הנדרשים

כדי לקבל את ההרשאות שדרושות לשימוש בקטלוג ייעודי לזמן ריצה של Lakehouse, אתם צריכים לבקש מהאדמין להקצות לכם בפרויקט את תפקידי ה-IAM הבאים:

להסבר על מתן תפקידים, ראו איך מנהלים את הגישה ברמת הפרויקט, התיקייה והארגון.

יכול להיות שאפשר לקבל את ההרשאות הנדרשות גם באמצעות תפקידים בהתאמה אישית או תפקידים מוגדרים מראש.

פעולות ניהול

אפשר לבצע את פעולות הניהול הבאות במשאבי נקודת הקצה של קטלוג REST של Apache Iceberg באמצעות Google Cloud המסוף או API בארכיטקטורת REST:

  • יצירת קטלוג: יוצרים נקודת קצה לניהול קטלוג REST של Apache Iceberg שמפנה למיקומי מחסן נתונים ב-Cloud Storage (CreateIcebergCatalog).
  • עדכון קטלוג: שדרוג קטלוג קיים של דלי יחיד לקטלוג של כמה דליים (UpdateIcebergCatalog).
  • יצירת מרחב שמות: יוצרים מרחב שמות בנקודת קצה של קטלוג REST של Iceberg כדי לקבץ טבלאות קשורות (CreateIcebergNamespace).
  • הפעלת מכירת פרטי כניסה: מעבירים את שיטת האימות של קטלוג קיים למצב של מכירת פרטי כניסה כדי למכור אסימוני אחסון לזמן קצר ישירות למנועי שאילתות (UpdateIcebergCatalog).
  • קבלת פרטים על הקטלוג: הצגת מאפיינים ומטא-נתונים של הקטלוג, כולל ה-URI של קטלוג REST שנדרש לחיבורי לקוח (GetIcebergCatalog).
  • ניהול רשימות ACL של מרחבי שמות: צפייה במדיניות IAM ועדכונה במרחבי השמות של הקטלוג כדי לשלוט בגישה של גורמים ספציפיים (get-iam-policy, set-iam-policy).
  • מחיקת קטלוג: ביטול הרישום של נקודת קצה לניהול מטא-נתונים של קטלוג מקטלוג זמן הריצה של Lakehouse ‏ (DeleteIcebergCatalog).
  • מחיקת מרחב שמות: מוחקים מרחב שמות מקטלוג REST של Iceberg כשאין בו יותר צורך (DeleteIcebergNamespace).
  • צפייה ביומני ביקורת: בדיקת יומני הביקורת ב-Cloud כדי למצוא רשומות שניתן לאמת של פעילויות אדמין וגישה לנתונים.

תמחור

לפרטים על התמחור, ראו תמחור של Lakehouse.

המאמרים הבאים