This section applies to clusters of versions earlier than MRS 3.x. For MRS 3.x or later, see Updating a Client (Version 3.x or Later).
Scenario
An MRS cluster provides a client for you to connect to a server, view task results, or manage data. Before using an MRS client, you need to download and update the client configuration file if service configuration parameters are modified and a service is restarted or the service is merely restarted on MRS Manager.
During cluster creation, the original client is stored in the /opt/client directory on all nodes in the cluster by default. After the cluster is created, only the client of a Master node can be directly used. To use the client of a Core node, you need to update the client configuration file first.
Procedure
Method 1:
Set Client Type to Only configuration files, Download To to Server, and click OK to generate the client configuration file. The generated file is saved in the /tmp/MRS-client directory on the active management node by default. You can customize the file path.
sudo su - omm
cd /opt/Bigdata/client
sh refreshConfig.sh Client installation directory Full path of the client configuration file package
For example, run the following command:
sh refreshConfig.sh /opt/Bigdata/client /tmp/MRS-client/MRS_Services_Client.tar
If the following information is displayed, the configurations have been updated successfully.
ReFresh components client config is complete. Succeed to refresh components client config.
Method 2: applicable to MRS 1.9.2 or later
sudo su - omm
cd /opt/Bigdata/client
sh autoRefreshConfig.sh
Components "xxx" have been installed in the cluster. Please input the comma-separated names of the components for which you want to update client configurations. If you press Enter without inputting any component name, the client configurations of all components will be updated:
If the following information is displayed, the configurations have been updated successfully.
Succeed to refresh components client config.
If the following information is displayed, the username or password is incorrect.
login manager failed,Incorrect username or password.
Scenario
During cluster creation, the original client is stored in the /opt/client directory on all nodes in the cluster by default. The following uses /opt/Bigdata/client as an example.
After installing the patch on the cluster, you need to update the client on the Master node to ensure that the functions of the built-in client are available.
Procedure
Set Client Type to All client files, Download To to Server, and click OK to generate the client configuration file. The generated file is saved in the /tmp/MRS-client directory on the active management node by default. You can customize the file path.
sudo su - root
cp /tmp/MRS-client/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
mv /opt/Bigdata/client /opt/Bigdata/client_bak
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.
chown omm:wheel /opt/Bigdata/client -R
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 /
sudo su - omm
scp omm@master1 nodeIP address:/tmp/MRS-client/MRS_Services_Client.tar /tmp/MRS-client/