On this page
Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Appendix/ Using an MRS Client/ Using an MRS Client on Nodes Inside a MRS Cluster

Using an MRS Client on Nodes Inside a MRS Cluster

Updated on 2022-11-18 GMT+08:00

Scenario

Before using the client, you need to install the client by referring to Installing a Client. For example, the installation directory is /opt/hadoopclient.

Procedure

  1. Log in to the Master node in the cluster as user root.
  2. Run the sudo su - omm command to switch the current user.
  3. Run the following command to go to the client directory:

    cd /opt/hadoopclient

  4. Run the following command to configure environment variables:

    source bigdata_env

  5. If the 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

    NOTE:

    User admin is created by default for MRS clusters with Kerberos authentication enabled and is used for MRS cluster administrators to maintain the clusters.

  6. Run the client command of a component directly.

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

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback