In Data Lake Formation (DLF), a catalog is the top-level container for organizing your metadata. It provides a hierarchical structure for your databases and tables. Using catalogs, you can keep metadata separate for different teams, manage data storage, and simplify management. This topic guides you through creating, modifying, and deleting a catalog.
Prerequisites
You have Set up DLF.
NoteThe activation and authorization are performed only once when you first set up for DLF environment.
To manage catalogs as a RAM user, you must have the following permissions:
API permissions: You have been assigned the
AliyunDLFFullAccesspermission policy or a policy that contains catalog-related authorization actions. For more information, see RAM authorization action reference.Data permissions: You must have been granted the
super_administratororadminsystem role or a custom role that has catalog-related permissions. For more information, see Configure data permissions.
Limitations
You can create a maximum of 10 catalogs per account in each region. To request an increase to this limit, submit a ticket.
Create a catalog
Log on to the DLF console.
On the Catalogs page, click Create Catalog and configure the following parameters.
Configuration Item
Description
Catalog Name
Enter a unique name for the catalog.
Description
Enter a description for the catalog.
Storage Type
Fixed to Standard Storage.
Storage Redundancy Type
Select a redundancy policy for your data:
LRS (Locally Redundant Storage): (Default) Stores data in a single zone. If the zone is unavailable, data becomes inaccessible.
ZRS (Zone-Redundant Storage): Replicates data across multiple zones within a region for higher availability.
NoteYou cannot change the redundancy type from ZRS to LRS after the catalog is created.
ZRS provides higher data availability but also incurs higher costs.
Read and select Terms of Service, then click Create Catalog.
View a catalog
In the left navigation pane, click Catalogs, and click the name of your catalog.
On the Details tab, view the catalog's basic information.
Click the Permissions tab to grant catalog-level permissions to DLF users or roles. For more information, see Manage data authorizations.
Click the Storage Optimization tab to configure storage tiering. For more information, see Storage optimization.
Click the Catalog Configuration tab to configure a lifecycle policy for file fragmentation and overwrite the default properties for creating Paimon tables. For more information, see Catalog configuration.
Storage optimization
Configuration item | Description |
Intelligent Tiering |
Note
|
Tiering Strategy |
|
Tiering Rule | The minimum storage duration varies by storage class. Configure tiering rules as follows:
|
Catalog configuration
File Fragment Lifecycle
Specify the expiration time for file fragments. A minimum value is 1 day. Expired fragments are automatically deleted and are irrecovered.
Advanced Settings
Overwrite the default properties for creating Paimon tables. For more information, see Paimon Table.
Delete a catalog
Before you delete a catalog, you must delete all tables from the default database and all other user-created databases within the catalog.
On the Catalog list, click Delete in the Actions column.
In the dialog box, click OK.
Once this feature is enabled, DLF automatically tiers storage for hot and cold data across all tables in the catalog, according to your configured lifecycle rules. You can specify the tiering policy and rules as needed.