Updated on 2024-11-08 GMT+08:00

Modifying Host Information in an Elastic Resource Pool

Scenario

Host information is the mapping between host IP addresses and domain names. After you configure host information, jobs can only use the configured domain names to access corresponding hosts. After a datasource connection is created, you can modify the host information.

When accessing the HBase cluster of MRS, you need to configure the host name (domain name) and IP address of the instance.

Constraints

You have obtained the MRS host information by referring to How Do I Obtain MRS Host Information?

Modifying Host Information

  1. Log in to the DLI management console.
  2. In the left navigation pane, choose Datasource Connections.
  3. On the Enhanced tab page displayed, locate the enhanced datasource connection to be modified, click More in the Operation column, and select Modify Host.
  4. In the Modify Host dialog box displayed, enter the obtained host information.

    Enter host information in the format of Host IP address Host name. Information about multiple hosts is separated by line breaks.

    Example:

    192.168.0.22 node-masterxxx1.com

    192.168.0.23 node-masterxxx2.com

    Obtain the MRS host information by referring to How Do I Obtain MRS Host Information?

  5. Click OK.

How Do I Obtain MRS Host Information?

  • Method 1: View MRS host information on the management console.

    To obtain the host name and IP address of an MRS cluster, for example, MRS 3.x, perform the following operations:

    1. Log in to the MRS management console.
    2. On the Active Clusters page displayed, click your desired cluster to access its details page.
    3. Click the Components tab.
    4. Click ZooKeeper.
    5. Click the Instance tab to view the corresponding service IP addresses. You can select any service IP address.
    6. Modify host information by referring to Modifying Host Information.

    If the MRS cluster has multiple IP addresses, enter any service IP address when creating a datasource connection.

  • Method 2: Obtain MRS host information from the /etc/hosts file on an MRS node.
    1. Log in to any MRS node as user root.
    2. Run the following command to obtain MRS hosts information. Copy and save the information.

      cat /etc/hosts

      Figure 1 Obtaining hosts information
    3. Modify host information by referring to Modifying Host Information.
  • Method 3: Log in to FusionInsight Manager to obtain host information.
    1. Log in to FusionInsight Manager.
    2. On FusionInsight Manager, click Hosts. On the Hosts page, obtain the host names and service IP addresses of the MRS hosts.
      Figure 2 FusionInsight Manager
    3. Modify host information by referring to Modifying Host Information.