Help Center > > User Guide> Connecting to Clusters> Using an MRS Client> Using an MRS Client on Nodes Inside a Cluster

Using an MRS Client on Nodes Inside a Cluster

Updated at: Feb 12, 2020 GMT+08:00

Scenario

You need to use a client on Master or Core nodes in a cluster.

Procedure

  • Using the client on a Master node
    1. On the active management node where the client is installed, that is, the Master node, run the sudo su - omm command to switch the user. Run the following command to go to the client directory:

      cd /opt/client

    2. Run the following command to configure the environment variables:

      source bigdata_env

    3. If Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user. If Kerberos authentication is disabled for the current cluster, skip this step.

      kinit MRS cluster user

      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.

    4. Run the client command of a component directly.

      For example, run the hdfs dfs -ls / command to view files in the HDFS root directory.

  • Using the client on a Core node
    1. Download a client configuration file from an active management node.
    2. Use the IP address to search for the active management node, and log in to the active management node using VNC. For details, see Logging In to an ECS.
    3. Log in to the active management node, and run the following command to switch the user:

      sudo su - omm

    4. On the MRS management console, view the IP address on the Nodes tab page of the specified cluster.

      Record the IP address of the Core node that will use the client.

    5. On the active management node, run the following command to copy the client configuration file package to the Core node:

      scp -p /tmp/MRS-client/MRS_Services_Client.tar IP address of the Core node:///opt/client

    6. For details, see Logging In to an ECS.

      Master nodes support Cloud-Init. The preset username for Cloud-Init is root and the password is the one you set during cluster creation.

    7. Run the following command to go to the client directory:

      cd /opt/client

    8. Run the following command to update client configurations:

      sh /opt/client/refreshConfig.sh Client installation directory Full path of the client configuration file package

      For example, run the following command:

      sh refreshConfig.sh /opt/client /opt/client/MRS_Services_Client.tar

      You can also refer to method 2 in Updating a Client to perform operations in 1 to 8 for clusters whose versions are MRS 1.8.5 or later.

    9. Run the following commands to switch to the client directory and configure environment variables:

      cd /opt/client

      source bigdata_env

    10. If Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user. If Kerberos authentication is disabled for the current cluster, skip this step.

      kinit MRS cluster user

      Example: kinit admin

    11. Run the client command of a component directly.

      For example, run the hdfs dfs -ls / command to view files in the HDFS root directory.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel