Combine MaxCompute with Data Lake Formation (DLF) and Object Storage Service (OSS) to create an integrated data warehouse and data lake architecture for flexible and efficient data processing. This topic describes how to build a data lakehouse and manage its projects.
Usage notes
-
The data lakehouse feature is available only in the following regions: China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Shenzhen), China (Hong Kong), Singapore, and Germany (Frankfurt).
-
MaxCompute, OSS, and DLF must be deployed in the same region.
Procedure
-
Activate services
-
On the DLF activation page, activate the DLF service.
-
-
Grant MaxCompute access permissions
You must grant permissions when building a data lakehouse because, by default, a MaxCompute project account is not authorized to access DLF or OSS. Use one of the following two authorization methods:
-
One-click authorization: Use this method if the same account manages the MaxCompute project, DLF, and OSS. We recommend that you click Authorize DLF and OSS to grant permissions with a single click.
-
Custom authorization: Use this method if different accounts manage the MaxCompute project, DLF, and OSS, or if you require manual configuration. For more information, see Custom authorization.
-
-
Build a data lakehouse in DataWorks
-
Log in to the DataWorks console and select a region in the upper-left corner.
For a list of supported regions, see Usage notes.
-
In the navigation pane on the left, choose .
-
On the Lake and Warehouse Integration (Data Lakehouse) page, click Start.
-
On the Create Data Lakehouse page, follow the on-screen instructions.
-
Create Data Warehouse:
Parameter
Description
External Project Name
A custom name for the external project. The name must meet the following requirements:
The name must start with a letter and can contain only letters, underscores (_), and digits.
The name must be no more than 128 characters long.
For more information about the basic concepts of external projects, see Project concepts.
MaxCompute Project
Select the desired MaxCompute project.
If you do not have a MaxCompute project, create a MaxCompute project.
If the target project is not available in the drop-down list, you must bind the target project in the DataWorks console.
-
Create Data Lake Connection
Parameter
Description
Heterogeneous Data Platform Type
Alibaba Cloud E-MapReduce/Hadoop Cluster: Build a Data Lakehouse with MaxCompute and Hadoop.
Alibaba Cloud DLF + OSS: Use MaxCompute, DLF, and OSS to build a Data Lakehouse.
Alibaba Cloud DLF + OSS data lake connection
External Project Description
Optional. The description of the external project.
Region Where DLF Is Activated
The region where the Data Lake Formation (DLF) service is available. Valid values:
China (Hangzhou): cn-hangzhou
China (Shanghai): cn-shanghai
China (Beijing): cn-beijing
China (Shenzhen): cn-shenzhen
China (Zhangjiakou): cn-zhangjiakou
Singapore: ap-southeast-1
Germany (Frankfurt): eu-central-1
DLF EndPoint
The internal service endpoint of DLF. Select an endpoint based on your region. Valid values:
China (Hangzhou): dlf-share.cn-hangzhou.aliyuncs.com
China (Shanghai): dlf-share.cn-shanghai.aliyuncs.com
China (Beijing): dlf-share.cn-beijing.aliyuncs.com
China (Zhangjiakou): dlf-share.cn-zhangjiakou.aliyuncs.com
China (Shenzhen): dlf-share.cn-shenzhen.aliyuncs.com
China (Hong Kong): dlf-share.cn-hongkong.aliyuncs.com
Singapore: dlf-share.ap-southeast-1.aliyuncs.com
Germany (Frankfurt): dlf-share.eu-central-1.aliyuncs.com
DLF Database Name
The name of the target database in DLF.
To obtain the database name:
Log on to the Data Lake Formation (DLF) console, and in the upper-left corner, select a region.
In the navigation pane on the left, choose .
On the Metadata page, click the Table tab.
Only databases in the default data catalog of DLF are supported.
Log on to the Data Lake Formation (DLF) console, and in the upper-left corner, select a region.
In the navigation pane on the left, choose .
On the Metadata page, click the Table tab.
DLF role ARN
Optional. The Alibaba Cloud Resource Name (ARN) of the RAM role, which is required if you use custom authorization.
To obtain the ARN:
Log in to the RAM console.
In the left navigation bar, select .
On the Roles page, click the target Role Name to go to the role details page.
In the Basic Information section, you can obtain the ARN.
-
-
-
Manage a data lakehouse with DataWorks
-
Log in to the DataWorks console and select a region in the upper-left corner.
-
In the navigation pane on the left, choose .
-
On the Other Items > Lake and Warehouse Integration (Data Lakehouse) page, you can perform the following actions:
-
Select the target external project, and click Use Data Lakehouse in the Actions column to get started.
-
Click Project configuration in the Actions column of the target external project to update the external project information in the Project configuration dialog box.
-
Update the database name of the external data source that is mapped to the MaxCompute external project, or reselect the external data source. To delete an external data source, go to the external data source page and delete it. (Updating an external data source is not currently supported).
-
Click Delete in the Actions column of the target external project. This action performs a logical delete on the MaxCompute external project. The external project enters a silent state and is permanently deleted after 15 days. During this period, you cannot create an external project with the same name.
-
-
View metadata for a data lakehouse external project
-
Log in to the DataWorks console and select a region in the upper-left corner.
-
In the navigation pane on the left, choose Workspace.
-
On the Workspaces page, in the Actions column of the target workspace, choose .
Select the workspace that is bound to the external project.
-
To search for a table name in an external project, use the search box on the Shortcuts Data Map page, or click the
icon in the left navigation bar and search on the Directory List tab on the right.
The metadata in the table is updated on a T+1 basis. This means if you modify a table schema on the mapping side, such as in Hive, the changes appear in DataWorks Data Map the next day. Metadata on the MaxCompute engine side is updated in real time.
-
-
In the Public Tables pane, enter keywords in the search box to quickly filter tables from external projects. When you select a target table, the Column Information, Partition Information, and Data Preview tabs appear below, showing the detailed table schema. In the SQL editor on the right, write and run queries against the external table. The query results are displayed in the Result tab below.
Related documents
For data lakehouse solutions that use Data Lake Formation (DLF), ApsaraDB RDS or Flink, and Object Storage Service (OSS) with Delta Lake or Hudi, see Using DLF, RDS or Flink, and OSS with Delta Lake or Hudi.