Metadata management is important for building a data lake. Centralized data management can help improve data value. Data Lake Formation (DLF) provides the metadata management feature for you to manage metadatabases and metadata tables.
Create a metadatabase
Log on to the DLF console. In the left-side navigation pane, choose Metadata > Metadata.
Click Create Database on the Database tab.
Configure the information about the metadatabase that you want to create.
Select a data catalog for the metadatabase.
Enter a name for the metadatabase.
Optional. Enter a description for the metadatabase.
Specify a path for the metadatabase.
Create a metadata table
Click Create Table on the Table tab.
Configure the information about the metadata table that you want to create.
Set a name for the metadata table.
Select a data catalog for the metadata table.
Select a database that belongs to the selected data catalog.
Optional. Enter a description for the metadata table.
Specify a location for storing the data of the metadata table.
Select a data format for the metadata table.
Select a delimiter for the metadata table.
Define columns for the metadata table. For example, specify column IDs, column names, and partition key columns.
Delete a metadatabase
1. Choose Metadata > Metadata.
2. On the Database tab, find the desired metadatabase, and click Delete in the Actions column. In the message that appears, click Delete.
The database named default is created in DLF by default and cannot be deleted. We recommend that you use other databases in production environments.
After you delete a database in the DLF console, the data stored in Object Storage Service (OSS) is not deleted. To delete the data from OSS, execute the DROP DATABASE statement in E-MapReduce (EMR) or MaxCompute.
Delete a metadata table
1. Choose Metadata > Metadata.
2. Click the Table tab, find the desired metadata table, and click Delete in the Actions column. In the message that appears, click Delete.
After you delete a metadata table in the DLF console, the data stored in OSS is not deleted. To delete the data from OSS, execute the DROP TABLE statement in EMR or MaxCompute.