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 MRS 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.
You can directly download the client file to the node where the client is to be installed, or download the file to the active OMS node or local computer and copy it to the node where the client is to be installed.
The generated file is stored in the /tmp/FusionInsight-Client directory on the active OMS node by default. You can also store the client file in other directories, and user omm has the read, write, and execute permissions on the directory. If the client file already exists in the path, the existing client file will be replaced.
When a cluster has many services installed, the cluster client file becomes quite large. Additionally, decompressing this file during installation can consume significant disk space. It's recommended to download the client files to a different directory that has ample space, or to promptly remove unnecessary files from the client download directory after installation. Doing so helps avoid exhausting the /tmp directory's disk space, which could interrupt the normal operation of the cluster nodes.
After the file is generated, copy the obtained package to another directory, for example, /opt/Bigdata/hadoopclient, as user omm or client installation user.
Parameter |
Description |
Example Value |
|---|---|---|
Save to Path |
Path for storing client files. If there is already a client file in the path, it will be overwritten. For a remote node, write permission for the path is required. |
/tmp/FusionInsight-Client-Remote/ |
Host IP Address |
IP address of the remote node. NOTE:
The platform type of the remote node must be the same as that of the downloaded client. Otherwise, the client may fail to be installed. |
x.x.x.x |
Host Port |
Host port of the remote node. |
22 |
Username |
Username for logging in to the remote node. For a remote node, write permission for the path is required. |
xxx |
Authentication Method |
You can choose one of the following methods:
|
Password |
Password |
This parameter is mandatory when Authentication Method is set to Password. This parameter indicates the password used for login. |
xxx |
SSH Private Keys |
This parameter is mandatory when Authentication Method is set to SSH private keys. Click Select File and select a local file to upload. |
- |
Auto Deployment |
Whether to enable auto deployment. This parameter is mandatory when Select Client Type is set to Complete Client.
|
Yes |
Deployment Path |
This parameter is mandatory when Auto Deployment is set to Yes. If only the configuration file is downloaded, this parameter will not be displayed. The deployment path must be empty if it already exists on the remote node. Otherwise, it will be created automatically. The path also requires operate and write permissions. |
/opt/testclient |
Copy the obtained software package to the file directory (for example, /tmp/FusionInsight-Client) of the server where the client is to be installed as the user (for example, user_client) who is preparing to install the client.
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