Creating an MRS Data Source Connection

Scenario

Before GaussDB(DWS) reads data from MRS HDFS, you need to create an MRS data source connection that functions as a channel of transporting data warehouse cluster data and MRS cluster data.

Impact on the System

  • You can create only one MRS data source connection in the data warehouse cluster at a time.

  • When an MRS data source connection is being created, the system automatically adds inbound and outbound rules to security groups of the data warehouse cluster and MRS cluster. Nodes in the same subnet can be accessed.

  • For the MRS cluster with Kerberos authentication enabled, the system automatically adds a Machine-Machine user that belongs to user group supergroup to the MRS cluster.

Prerequisites

  • You have created a data warehouse cluster and recorded the VPC and subnet where the cluster resides.

  • An MRS cluster of the analysis type has been created.

Procedure

  1. Log in to the public cloud management console.

  2. Choose Service List > EI Enterprise Intelligence > MapReduce Service to enter the MRS management console and create a cluster.

    Configure parameters as required. For details, see "Cluster Operation Guide > Custom Creation of a Cluster" in the MapReduce Service User Guide.

    • The VPC of the MRS cluster must be the same as that of the data warehouse cluster.

    • MRS cluster versions 1.9.2, 2.1.0, 3.0.2-LTS, and 3.1.2-LTS are recommended.

      Note

      • For clusters of version 8.1.1.300 and later, MRS clusters support versions 1.6.*, 1.7.*, 1.8.*, 1.9.*, 2.0.*, 3.0.*, 3.1.*, and later (* indicates a number).

      • For clusters earlier than version 8.1.1.300, MRS clusters support versions 1.6.*, 1.7.*, 1.8.*, 1.9.*, and 2.0.* (* indicates a number).

    • Select the Hadoop component.

    If you already have a qualified MRS cluster, skip this step.

  3. Choose Service List > EI Enterprise Intelligence > GaussDB(DWS).

  4. On the GaussDB(DWS) management console, click Clusters.

  5. In the cluster list, click the name of a cluster. On the page that is displayed, click the MRS Data Sources tab.

  6. Click Create MRS Cluster Connection and configure parameters.

    Table 1 MRS cluster connection parameters

    Parameter

    Description

    MRS Data Source

    Specifies the MRS cluster to which GaussDB(DWS) can connect. By default, all the available custom, hybrid, and analytic MRS clusters that are in the same VPC and subnet as the current data warehouse cluster are displayed.

    After you select an MRS cluster, the system automatically displays whether Kerberos authentication is enabled for the selected cluster. Click View MRS Cluster to view its detailed information.

    If the MRS Data Source drop-down list is empty, click Create MRS Cluster to create an MRS cluster.

    MRS Account

    Specifies the account used when a data warehouse cluster connects to an MRS cluster.

    Password

    Specifies the password of the connection user. If you change the password, you need to create a connection again.

    Important

    NOTICE: Ensure the account has been used for logging in to MRS Manager. If you use a new account, you will be asked to change your password when you first log in. In this case, the MRS data source will fail to be configured.

    Description

    Describes the connection.

  7. Click OK to save the connection.

    Configuration Status turns to Creating. You can view the connection that is successfully created in the MRS data source list and the connection status is Available.

    Note

    • In the Operation column, you can click Update Configurations to update MRS Cluster Status and Configuration Status. During configuration update, you cannot create a connection. The system checks whether the security group rule is correct. If the rule is incorrect, the system rectifies the fault. For details, see Updating the MRS Data Source Configuration.

    • In the Operation column, you can click Delete to delete the unnecessary connection. When deleting a connection, you need to manually delete the security group rule.

    • If the security group rules are not deleted, nodes in the data warehouse cluster can still communicate with nodes in the MRS cluster. If you have strict requirements on network security, manually delete the rules.