Help Center/ Migration Center/ User Guide/ Big Data Lineage/ Collecting Metadata/ Creating a Data Lake Metadata Collection Task
Updated on 2024-11-01 GMT+08:00

Creating a Data Lake Metadata Collection Task

Use the created metadata connection to create a collection task that gathers the details about source databases, tables, and fields to MgC. Only Delta lakes with metadata are supported.

For Delta lakes without metadata, you can manually add information about database tables one by one or import them in a batch. For details, see Viewing Metadata.

Procedure

  1. Sign in to the MgC console.
  2. In the navigation pane on the left, choose Research > Data Lineage. Select a migration project in the upper left corner of the page.
  3. In the Metadata Collection area, choose Create Task > Data Lake Metadata Collection.

  4. Set task parameters based on Table 1.

    Table 1 Parameters for configuring a metadata collection task

    Parameter

    Configuration

    Task Name

    The default name is Data-Lake-Metadata-Sync-Task-4 random characters (including letters and numbers). You can also specify a name.

    Metadata Connection

    Select the created connection to Delta Lake (with metadata).

    Databases

    Enter the names of the databases whose metadata needs to be collected.

    Concurrent Threads

    Set the maximum number of threads for executing the collection. The default value is 3. The value ranges from 1 to 10. More concurrent threads means more efficient collection, but more connection and Edge device resources will be consumed.

    Custom Parameters

    You can configure custom parameters to specify the tables and partitions to collect or set criteria to filter tables and partitions.

    • If the metadata source is Alibaba Cloud EMR, add the following parameter:
      • Parameter: conf
      • Value: spark.sql.catalogImplementation=hive
    • If the source is Alibaba Cloud EMR Delta Lake 2.2 and is accessed through Delta Lake 2.3, add the following parameters:
      • Parameter: master
      • Value: local

  5. Click Confirm. The metadata collection task is created.
  6. Click Collection tasks. Under Tasks, you can review the created metadata collection task and its settings. You can modify the task by choosing More > Modify in the Operation column.

  7. Click Execute in the Operation column to run the task. Each time the task is executed, a task execution is generated.
  8. Click View Executions in the Operation column. Under Task Executions, you can view the execution records of the task and the status and collection results of each task execution. When a task execution enters a Completed status and the collection results are displayed, you can view the list of databases and tables extracted from collected metadata on the Tables tab page.

  9. Locate a table and click Collect in the Lineage column to create a lineage collection task.