This section describes how to install the clients of all services, except Flume, in the MRS cluster. MRS provides shell scripts for different services so that maintenance personnel can log in to related maintenance clients and implement maintenance operations.
Log in to FusionInsight Manager. Click the wanted cluster from the Cluster drop-down list.
Click More and select Download Client. The Download Cluster Client page is displayed.
If only one component client is to be installed, choose Cluster, click the name of the target cluster, choose Services, click a service name, click More, and select Download Client. The Download Client page is displayed.
Configuration Files Only is to download client configuration files in the following scenario: After a complete client is downloaded and installed and the system administrator modifies server configurations on Manager, developers need to update the configuration files during application development.
The platform type can be set to x86_64 or aarch64.
The cluster supports two types of clients: x86_64 and aarch64. The client type must match the architecture of the node for installing the client. Otherwise, client installation will fail.
If you cannot obtain the permissions of user root, use user omm.
Use WinSCP to upload the obtained software package as the user (such as user_client) who prepares for the installation, to the directory (such as /opt/Bigdata/hadoopclient) of the server where the client is to be installed.
The name of the client software package is in the follow format: FusionInsight_Cluster_<Cluster ID>_Services_Client.tar.
The host where the client is to be installed can be a node inside or outside the cluster. If the node is a server outside the cluster, it must be able to communicate with the cluster, and the NTP service must be enabled to ensure that the time is the same as that on the server.
remote refid st t when poll reach delay offset jitter ============================================================================== *10.10.10.162 .LOCL. 1 u 1 16 377 0.270 -1.562 0.014
remote refid st t when poll reach delay offset jitter ============================================================================== 10.10.10.162 .INIT. 1 u 1 16 377 0.270 -1.562 0.014
You can also configure the same chrony clock source for external servers as that for the cluster. After the configuration, run the chronyc sources command to check whether the time is synchronized.
MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* 10.10.10.162 10 10 377 626 +16us[ +15us] +/- 308us
MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^? 10.1.1.1 0 10 0 - +0ns[ +0ns] +/- 0ns
Go to the directory where the installation package is stored, for example, /opt/Bigdata/hadoopclient. Run the following command to decompress the installation package to a local directory:
tar -xvf FusionInsight_Cluster_1_Services_Client.tar
Run the following command to verify the decompressed file and check whether the command output is consistent with the information in the sha256 file:
sha256sum -c FusionInsight_Cluster_1_Services_ClientConfig.tar.sha256
FusionInsight_Cluster_1_Services_ClientConfig.tar: OK
tar -xvf FusionInsight_Cluster_1_Services_ClientConfig.tar
su - root
cd /opt/Bigdata/hadoopclient/FusionInsight_Cluster_1_Services_ClientConfig
cd /opt/Bigdata/hadoopclient/FusionInsight_Cluster_1_Services_ClientConfig
Run the ./install.sh /opt/client command to install the client. The client is successfully installed if information similar to the following is displayed:
The component client is installed successfully
kinit admin
Password for xxx@HADOOP.COM: #Enter the login password of user admin (same as the user password for logging in to the cluster).
Ticket cache: FILE:/tmp/krb5cc_0 Default principal: xxx@HADOOP.COM Valid starting Expires Service principal 04/09/2021 18:22:35 04/10/2021 18:22:29 krbtgt/HADOOP.COM@HADOOP.COM
uid indicates the ID of the user who logs in to the OS. For example, if the UID of user root is 0, the ticket generated for kinit authentication after user root logs in to the system is stored in the /tmp/krb5cc_0 directory.
If the current user does not have the read/write permission for the /tmp directory, the ticket cache path is changed to Client installation directory/tmp/krb5cc_uid. For example, if the client installation directory is /opt/hadoopclient, the kinit authentication ticket is stored in /opt/hadoopclient/tmp/krb5cc_uid.
ll /opt
drwxr-x---. 6 root root 4096 Dec 11 19:00 hadoopclient drwxr-xr-x. 3 root root 4096 Dec 9 02:04 godi drwx------. 2 root root 16384 Nov 6 01:03 lost+found drwxr-xr-x. 2 root root 4096 Nov 7 09:49 rh
mv /opt/client /tmp/clientbackup