Updated on 2022-02-22 GMT+08:00

Updating the hosts File in Batches

Scenario

The client package downloaded from FusionInsight Manager contains the client batch upgrade tool which provides the lightweight functions of upgrading the client in batches and updating the /etc/hosts files on the nodes where the clients reside in batches.

Prerequisites

For details about how to prepare for the upgrade, see "Preparation Before the Client Upgrade" in Procedure.

Updating the hosts File in Batches

  1. Check whether the user configured on the host where the /etc/hosts file needs to be updated is user root.

    • If yes, go to 2 .
    • If no, change the configured user to user root, and go to 2.

  2. Run the sh client_batch_upgrade.sh -r -f /tmp/FusionInsight-Client/FusionInsight_Cluster_1_Services_Client.tar command to update the /etc/hosts file on the nodes where the clients are located in batches.

    • When you batch update the /etc/hosts file, the client package name you entered can be either the name of a complete client package or configuration file name only (recommended).
    • The configured user of the host where the /etc/hosts file needs to be updated must be user root. Otherwise, the update fails.