Using a Client

Scenario

After the client is installed, you can use the shell command on the client in O&M or service scenarios, or use the sample project on the client during application development.

This section describes how to use the client in O&M scenario or service scenarios.

Prerequisites

Procedure

  1. Log in to the node where the client is installed as the client installation user.
  2. Run the following command to switch to the client installation directory:

    cd /opt/client

  3. Run the following command to set environment variables:

    source bigdata_env

  4. If the cluster is in security mode, authenticate the user. For a normal cluster, user authentication is not required.

    kinit Component service user

  5. Run the shell command as required.