This section describes how to install clients of all services (excluding Flume) in an MRS cluster. For details about how to install the Flume client, see Installing the Flume Client.
A client can be installed on a node inside or outside the cluster. This section uses the installation directory //opt/client as an example. Replace it with the actual one.
CPU Architecture |
OS |
Supported Version |
---|---|---|
x86 computing |
Euler |
EulerOS 2.5 |
SUSE |
SUSE Linux Enterprise Server 12 SP4 (SUSE 12.4) |
|
RedHat |
Red Hat-7.5-x86_64 (Red Hat 7.5) |
|
CentOS |
CentOS 7.6 |
|
Kunpeng computing (Arm) |
Euler |
EulerOS 2.8 |
CentOS |
CentOS 7.6 |
In addition, sufficient disk space is allocated for the ECS, for example, 40 GB.
If the NTP service is not installed, run the yum install ntp -y command to install it when the yum source is configured.
Log in to FusionInsight Manager. For details, see Accessing FusionInsight Manager (MRS 3.x or Later). Click the name of the cluster to be operated in the Cluster drop-down list.
In the scenario where only one client is to be installed, choose Cluster > Service > Service name > More > Download Client. The Download Client dialog box is displayed.
Configuration Files Only is to download client configuration files in the following scenario: After a complete client is downloaded and installed and administrators modify 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.
The generated file is stored in the /tmp/FusionInsight-Client directory on the active management node by default. You can also store the client file in a directory on which user omm has the read, write, and execute permissions. Copy the software package to the file directory on the server where the client is to be installed as user omm or root.
The name of the client software package is in the follow format: FusionInsight_Cluster_<Cluster ID>_Services_Client.tar. In this section, the cluster ID 1 is used as an example. Replace it with the actual cluster ID.
If you cannot obtain the permissions of user root, use user omm.
To install the client on another node in the cluster, run the following command to copy the client to the node where the client is to be installed:
scp -p /tmp/FusionInsight-Client/FusionInsight_Cluster_1_Services_Client.tar IP address of the node where the client is to be installed:/opt/Bigdata/client
Go to the directory where the installation package is stored, such as /tmp/FusionInsight-Client. 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
cd /tmp/FusionInsight-Client/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
cd /opt/client
Example: kinit admin
User admin is created by default for MRS clusters with Kerberos authentication enabled and is used for administrators to maintain the clusters.
For example, run the hdfs dfs -ls / command to view files in the HDFS root directory.
server master1_ip prefer server master2_ip
/usr/sbin/ntpdate 192.168.10.8
192.168.10.8 indicates the IP address of the active Master node.
scp -p /tmp/FusionInsight-Client/FusionInsight_Cluster_1_Services_Client.tar IP address of the node where the client is to be installed:/tmp
Run the following commands to install the client. If the user does not have operation permissions on the client software package and client installation directory, grant the permissions using the root user.
cd /tmp
tar -xvf FusionInsight_Cluster_1_Services_Client.tar
tar -xvf FusionInsight_Cluster_1_Services_ClientConfig.tar
cd FusionInsight_Cluster_1_Services_ClientConfig
./install.sh /opt/client
source bigdata_env
Example: kinit admin
For example, run the hdfs dfs -ls / command to view files in the HDFS root directory.