Create an enhanced datasource connection for DLI to access, import, query, and analyze data of other data sources.
For example, to connect DLI to the MRS, RDS, CSS, Kafka, or GaussDB(DWS) data source, you need to enable the network between DLI and the VPC of the data source.
Create an enhanced datasource connection on the console.
Configure parameters according to Table 1.
Parameter |
Description |
---|---|
Connection Name |
Name of the created datasource connection.
|
Resource Pool |
It binds an elastic resource pool or queue that uses a datasource connection. This parameter is optional. In regions where this function is available, an elastic resource pool with the same name is created by default for the queue created in "Creating a Queue." NOTE:
Before using an enhanced datasource connection, you must bind a queue and ensure that the VPC peering connection is in the Active state. |
VPC |
VPC used by the data source. |
Subnet |
Subnet used by the data source. |
Host Information |
In this text field, you can configure the mapping between host IP addresses and domain names so that jobs can only use the configured domain names to access corresponding hosts. This parameter is optional. For example, when accessing the HBase cluster of MRS, you need to configure the host name (domain name) and IP address of the ZooKeeper instance. Enter one record in each line in the format of IP address Host name/Domain name. Example: 192.168.0.22 node-masterxxx1.com 192.168.0.23 node-masterxxx2.com For details about how to obtain host information, see How Do I Obtain MRS Host Information?. |
Tags |
Tags used to identify cloud resources. A tag includes the tag key and tag value. If you want to use the same tag to identify multiple cloud resources, that is, to select the same tag from the drop-down list box for all services, you are advised to create predefined tags on the Tag Management Service (TMS). NOTE:
|
After the creation is complete, the enhanced datasource connection is in the Active state, indicating that the connection is successfully created.
Choose Resources > Queue Management from the left navigation pane. On the page displayed, locate the queue on which jobs are running, and click the button next to the queue name to obtain the CIDR block of the queue.
Configure the inbound rule parameters according to Table 2.
Parameter |
Description |
Example Value |
---|---|---|
Priority |
Priority of a security group rule. The priority value ranges from 1 to 100. The default value is 1, indicating the highest priority. A smaller value indicates a higher priority of a security group rule. |
1 |
Action |
Action of the security group rule. |
Allow |
Protocol & Port |
|
In this example, select TCP. Leave the port blank or set it to the data source port. |
Type |
Type of IP addresses. |
IPv4 |
Source |
Allows access from IP addresses or instances in another security group. |
In this example, enter the obtained queue CIDR block. |
Description |
Supplementary information about the security group rule. This parameter is optional. |
_ |
Take the RDS data source as an example. On the Instances page, click the target DB instance. On the page displayed, locate the Connection Information pane and view the private IP address. In the Connection Information pane, locate the Database Port to view the port number of the RDS DB instance.
Format: IP address:Port number
Before testing the connection, ensure that the security group of the external data source has allowed access from the CIDR block of the queue.