How Do I Configure Environment Variables and Run Commands on a Component Client?

  1. Log in to any Master node as user root.

  2. Run the su - omm command to switch to user omm.

  3. Run the cd client installation directory command to switch to the client.

  4. Run the source bigdata_env command to configure environment variables.

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

  5. After the environment variables are configured, run the client command of the component. For example, to view component information, you can run the HDFS client command hdfs dfs -ls / to view the HDFS root directory file.