Creating LakeFormation Metadata
LakeFormation is an enterprise-level, all-in-one lakehouse service that provides unified metadata management. AI DataLake integrates with LakeFormation to manage metadata and control data access. Before submitting an AI DataLake job, create a LakeFormation instance, build metadata, configure permissions, associate the instance to AI DataLake, and create an endpoint to establish a data connection. This section describes how to configure the data connection between AI DataLake and LakeFormation.
Procedure
- Create a LakeFormation instance to set up metadata management.
- Create LakeFormation metadata by creating an OBS parallel file system and metadata objects (catalogs, databases, and tables). This provides data storage and asset catalogs for AI DataLake.
- If external metadata exists, migrate it to LakeFormation.
- Configure LakeFormation data access permissions to authorize AI DataLake or users to access metadata.
- Create an AI DataLake workspace, associate it with the LakeFormation instance, and set up an isolated service environment.
- Create an endpoint and select an agency to establish an access connection between AI DataLake and LakeFormation.
- Develop jobs based on the configured metadata and permissions.
Step 1: Create a LakeFormation Instance
- Log in to the LakeFormation console.
- Click Buy Now or Buy Instance in the upper right corner of the page.
If no instances exist on the page, Buy Now is displayed. If LakeFormation instances already exist on the page, Buy Instance is displayed.
- Configure LakeFormation instance parameters as required and complete the creation.
For details, see Creating a LakeFormation Instance.
LakeFormation provides basic functions such as instance configuration, scaling, and deletion, helping you easily manage instances and accelerate the planning and deployment of data lake services. For details, see LakeFormation Instance Management.
Step 2: Create LakeFormation Metadata
- When a Spark cluster starts, it verifies the default database. You must create a database named default under the current catalog on the LakeFormation page and specify a valid OBS path. Otherwise, the Spark cluster may fail to start.
- The Spark engine cannot read catalogs, databases, tables, columns, or functions with uppercase names.
- The data files and catalogs mapped to LakeFormation metadata are stored in OBS. Before creating LakeFormation metadata, create an OBS parallel file system for data storage.
For details, see Creating a Parallel File System.
- After preparing OBS storage, create metadata objects (catalogs, databases, and tables) to enable unified metadata management and build structured data assets for efficient data governance.
For details, see Creating LakeFormation Metadata.
Step 3: Migrate Metadata to LakeFormation
If you have external metadata, migrate it to LakeFormation and store the data in OBS. This enables unified metadata management, centralized data storage, and complete lifecycle management. After the migration completes, AI DataLake can access the metadata through the associated LakeFormation instance.
For details, see Migrating Metadata to LakeFormation.
Step 4: Configure LakeFormation Data Access Permissions
As a unified metadata and permission management service, LakeFormation enforces fine-grained permission isolation for catalogs, databases, and tables. After creating metadata, configure data access permissions for users or agencies to ensure that AI DataLake jobs can access required metadata and data resources.
For details about permission management for LakeFormation integration, see Overview of Permission Management for LakeFormation Integration.
Permission management for LakeFormation integration involves two levels:
- IAM authorization and agency for LakeFormation: Grant IAM users or user groups permissions to use LakeFormation, or authorize AI DataLake to access LakeFormation on your behalf through an agency. For details about IAM authorization, see Creating an IAM User and Granting the LakeFormation Permissions.
- LakeFormation resource authorization: On the LakeFormation console, grant permissions for specific resources (catalogs, databases, tables, columns, or functions) to control which metadata users or agencies can access. For example, User A can access only table_1, while User B can access only table_2. For details, see Configuring LakeFormation Metadata Permissions.
Step 5: Associate an AI DataLake Workspace with a LakeFormation Instance
A workspace is an independent data analysis environment provided by AI DataLake. It isolates the resources and permissions of different services, departments, or projects. When creating a workspace, associate it with a created LakeFormation instance. After association, AI DataLake can view the metadata in the instance, establishing the data foundation for subsequent job development.
Rules for associating LakeFormation instances
- A workspace can be associated with only one LakeFormation instance.
- Different workspaces can be associated with the same LakeFormation instance.
- After a workspace is created, its associated LakeFormation instance cannot be changed.
For details, see Creating a Workspace.
Step 6: Create an Endpoint and Select an Agency
An endpoint is the entry point of the AI DataLake engine. You can use endpoints to submit data processing and analysis jobs. After configuring LakeFormation permissions, you must select the corresponding agency when creating an endpoint. This agency authorizes AI DataLake to access LakeFormation resources on your behalf, establishing the connection between AI DataLake and LakeFormation.
For details, see Creating a Custom Agency.
Step 7: Develop a Job
After completing the preceding steps, the metadata and permission connections between AI DataLake and LakeFormation are established. After the endpoint is created and enters the Running state, develop jobs based on the configured metadata and permissions.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot