An MRS client is required. The MRS cluster client can be installed on the Master or Core node in the cluster or on a node outside the cluster.
After a cluster of versions earlier than MRS 3.x is created, a client is installed on the active Master node by default. You can directly use the client. The installation directory is /opt/client.
For details about how to install a client of MRS 3.x or later, see Installing a Client (Version 3.x or Later).
If a client has been installed on the node outside the MRS cluster and the client only needs to be updated, update the client using the user who installed the client, for example, user root.
OS |
Supported Version |
---|---|
EulerOS |
|
For example, a user can select the enterprise image Enterprise_SLES11_SP4_latest(4GB) or standard image Standard_CentOS_7.2_latest(4GB) to prepare the OS for an ECS.
In addition, sufficient disk space is allocated for the ECS, for example, 40 GB.
If this requirement is not met, modify the ECS security group or configure the inbound and outbound rules of the ECS security group to allow the ECS security group to be accessed by all security groups of MRS cluster nodes.
If only the client configuration file needs to be updated, see method 2 in Updating a Client (Versions Earlier Than 3.x).
Record the IP address of the Core node where the client is to be used.
scp -p /tmp/MRS-client/MRS_Services_Client.tar IP address of the Core node:/opt/client
For details, see Login Using an SSH Key.
tar -xvf MRS_Services_Client.tar
tar -xvf MRS_Services_ClientConfig.tar
cd /opt/client/MRS_Services_ClientConfig
./install.sh Client installation directory
For example, run the following command:
./install.sh /opt/client
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.
If other users are used, ensure that the users have read, write, and execute permission on the save path.
If the following information is displayed, the client package is saved. Click Close. Obtain the client file from the save path on the remote host that is set when the client is downloaded.
Client files downloaded to the remote host successfully.
If the following information is displayed, check the username, password, and security group configurations of the remote host. Ensure that the username and password are correct and an inbound rule of the SSH (22) port has been added to the security group of the remote host. And then, go to 2 to download the client again.
Failed to connect to the server. Please check the network connection or parameter settings.
Generating a client will occupy a large number of disk I/Os. You are advised not to download a client when the cluster is being installed, started, and patched, or in other unstable states.
Log in to the ECS. For details, see Login Using an SSH Key. Set the ECS password and log in to the ECS in VNC mode.
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.
sudo su - root
cp /home/linux/MRS_Services_Client.tar /opt
tar -xvf MRS_Services_Client.tar
sha256sum -c MRS_Services_ClientConfig.tar.sha256
The command output is as follows:
MRS_Services_ClientConfig.tar: OK
tar -xvf MRS_Services_ClientConfig.tar
sh /opt/MRS_Services_ClientConfig/install.sh /opt/Bigdata/client
If the following information is displayed, the client has been successfully installed:
Components client installation is complete.
For example, run the following command: ping Master node IP address.
source /opt/Bigdata/client/bigdata_env
kinit MRS cluster user
Example: kinit admin
For example, run the following command to query the HDFS directory:
hdfs dfs -ls /