Updated on 2025-01-17 GMT+08:00

Creating a Target Connection

The target connection is used to write source data to DLI.

Precautions

For a metadata migration, a DLI connection with an SQL queue configured is required.

For a data migration, two DLI connections are required: one with an SQL queue configured and the other with a general queue.

Prerequisites

You have completed all preparations.

Procedure

  1. Sign in to the MgC console. In the navigation pane, under Project, select your big data migration project from the drop-down list.
  2. In the navigation pane on the left, choose Migrate > Big Data Migration.
  3. Click Connection Management in the upper right corner of the page.

  4. Click Create Connection.

    Figure 1 Creating a connection

  5. On the Select Connection Type page, select Data Lake Insight (DLI) and click Next.

    Figure 2 Selecting DLI

  6. Configure the parameters listed in Table 1, and click Test. If the test is successful, the connection is set up.

    Table 1 Parameters for creating a DLI connection

    Parameter

    Configuration

    Connection To

    Select Target.

    Connection Name

    The default name is DLI-4 random characters (including letters and numbers). You can also customize a name.

    MgC Agent

    Select the MgC Agent you connected to MgC in Preparations.

    DLI Credential

    Select the Huawei Cloud credential (an AK/SK pair) you added to the MgC Agent in Preparations. If the selected credential is the one you currently use to access MgC, you can select This is my MgC credential, and the projects in the region you choose will be listed.

    Region

    Select the region where your DLI resources are located. If you do not select This is my MgC credential, you need to manually enter the region code, for example, cn-north-1.

    Project

    Select the project where your DLI resources are managed. Your source data will be managed in this project after being migrated. If you do not select This is my MgC credential, you need to manually enter the project ID. For details about how to obtain the project ID, see Obtaining Project Information.

    Queue

    Enter the name of the SQL queue or general queue created in Purchasing an Elastic Resource Pool and Adding a Queue on DLI.

    • If you are creating a connection using an SQL queue, enter the name of the SQL queue.
    • If you are creating a connection using a general queue, enter the name of the general queue.

    After the target connection is created, you can view it in the list on the Connection Management page. If necessary, click Modify in the Operation column to modify the connection configuration.