Apache Gravitino metadata collection
After you configure an Apache Gravitino data source, you can create a metadata crawler in Data Map to collect the catalog metadata (databases, tables, columns, and partitions) managed by Gravitino into DataWorks. This enables cross-data-lake metadata discovery and governance. This topic describes how to perform metadata collection for a Gravitino data source and explains the collected metadata.
Prerequisites
An Apache Gravitino data source is created and passes the connectivity test. For more information, see Apache Gravitino data source.
NoteApache Gravitino serves only as a metadata collection channel in this scenario. After collection, the metadata presented in DataWorks is still from the underlying catalogs, such as Iceberg Catalog, Paimon Catalog, and Hive Catalog.
A serverless resource group is created and associated with the workspace.
Limits
Only Relational catalogs are supported for collection, such as Hive, Iceberg, Paimon, and JDBC catalogs. Model, File Set, and Messaging catalog types are not supported.
Partition information is dynamically retrieved in real time and is not statically stored. Each time you view partitions, the data is fetched on demand.
Create a metadata collection task
Log on to the DataWorks console. In the target region, click in the left-side navigation pane. On the page that appears, click Go to Data Map.
On the Data Map page, click Metadata Collection in the top navigation bar to go to the metadata collection page.
On the metadata collection page, click Create Crawler to go to the Create Metadata Collection page.
In the Basic Configuration section, configure the following parameters:
Parameter
Description
Collection Type
Select Apache Gravitino.
Configuration Source
The default value is Data Source.
Select Workspace
Select the workspace to which the data source belongs, or select All Workspaces to view all available data sources.
Select Data Source
Select the Apache Gravitino data source that you created. After the selection, the data source type, name, workspace, environment type, and connection information are displayed below.
Name
The custom name of the metadata collection task, such as
gravitino_test.In the Resource Group Configuration section, configure the following parameters:
Parameter
Description
Resource Group
Select the serverless resource group for running the collection task. After the selection, the name, identifier, type, and status of the resource group are displayed.
Test Connectivity
Click Test Connectivity to verify the network connectivity between the resource group and the data source. The connectivity test must pass before you can save the collection configuration.
(Optional) In the AI Enhancement Configuration section, select whether to enable AI Description Enhancement.
After this feature is enabled, the system uses the intelligent analysis capabilities of the DataWorks data agent large language model to automatically generate description recommendations for tables and columns after metadata collection is complete. Asset owners can view the AI-generated descriptions on the table details page and choose to confirm or manually modify the descriptions to improve the accuracy and standardization of metadata management.
In the Collection Plan section, configure the following parameters:
Parameter
Description
Trigger Method
Select the trigger method for collection:
Manual: The collection can only be triggered manually.
Periodic: The collection task is automatically run based on the configured schedule.
Collection Frequency
If you set Trigger Method to Periodic, specify the collection frequency. Valid values: Monthly, Weekly, Daily, and Hourly. If you select Hourly, you can further select specific minutes from the Minutes drop-down list. Multiple values can be selected, with a minimum granularity of 5 minutes (for example, 0, 5, 10, and 15).
After the configuration is complete, click Save and Run at the bottom of the page to save the configuration and immediately trigger a collection task. You can also click Save to save the configuration only and manually trigger the collection later.
View database details
After the collection task runs successfully, you can view the databases and tables covered by the collection on the Data Scope tab of the crawler details page.
In the Metadata Collection list, click the name of the target crawler to go to the crawler details page.
Click the Data Scope tab to view the list of collected databases.
The Data Scope page displays the following information:
Column | Description |
Database Name | The name of the collected database (schema). |
Table Count | The number of tables collected in the database. |
Last Updated | The time when the metadata of the database was last collected and updated. |
Actions | Click View Details to go to the database details page. |
After you click View Details, the database details page is displayed. The left side shows the basic information of the database, and the right side shows the table list.
The Basic Information section includes:
Total Tables: The total number of tables collected in the database.
Database: The database name.
Entity ID: The unique identifier of the database.
Technical Type: The technical type of the database, such as Apache Hive, Iceberg, or Paimon.
Region: The region where the data source is located.
The Table List displays the following information:
Column | Description |
Table Name | The name of the table. Click the name to go to the table details page. |
Type | The technical type of the table, such as Apache Hive, Iceberg, or Paimon. |
Table Description | The description of the table. |
Created Time | The time when the table was created. |
Updated Time | The time when the table was last updated. |
View table details
In the table list on the database details page, click a table name to go to the table details page. The left side displays the basic information, technical information, and business information of the table. The right side displays column details and usage notes.
Basic information
The Basic Information section displays the following fields:
Field | Description |
Table Name | The name of the table. |
Data Source Type | The data source type of the table, such as Apache Hive, Iceberg, or Paimon. |
Database | The database to which the table belongs. Click the name to go to the database details page. |
Entity ID | The unique identifier of the table, generated by combining the Gravitino Server connection address, the metalake name, and the catalog name. |
Created Time | The time when the table was created. |
Table Description | The description of the table. |
AI Table Description | The AI-generated description of the table. If not generated, click Generate AI Description to trigger generation manually. |
Table Type | The management type of the table, such as MANAGED_TABLE or EXTERNAL_TABLE. |
Partitioned | Indicates whether the table is a partitioned table. |
Technical information
Technical information may vary depending on the data source; please refer to the actual content displayed on the page for accurate details.
Business information
The Business Information section displays the ownership of the table in Gravitino:
Field | Description |
Instance ID | The unique identifier of the Gravitino data source instance. |
Gravitino Instance Address | The access address of the Gravitino Server. |
Metalake Name | The name of the Metalake to which the table belongs. |
Catalog Name | The name of the Catalog to which the table belongs. |
Column details
The Column Details tab on the right side displays the column list and partition column information:
Column list: Displays column names, data types, descriptions, and whether a column is a primary key. You can use the search box to filter columns, or click AI Column Description to automatically generate descriptions for columns.
Partition column information: Displays the column names, types, and descriptions of partition columns. If the table is not partitioned, "No data" is displayed.