Updated on 2022-08-12 GMT+08:00

Using a ZooKeeper Client

Scenario

Use a ZooKeeper client in an O&M scenario or service scenario.

Prerequisites

You have installed the client. For example, the installation directory is /opt/client. The client directory in the following operations is only an example. Change it based on the actual installation directory onsite.

Procedure

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

    cd /opt/client

  3. Run the following command to configure environment variables:

    source bigdata_env

  4. Run the following command to authenticate the user: (skip this step in common mode):

    kinit Component service user

  5. Run the following command to log in to the client tool:

    zkCli.sh -server service IP address of the node where the ZooKeeper role instance locates:client port