Use a ZooKeeper client in an O&M scenario or service scenario.
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.
cd /opt/client
source bigdata_env
kinit Component service user
zkCli.sh -server service IP address of the node where the ZooKeeper role instance locates:client port