An Error Is Reported When the MRS Client Is Used to Connect to ZooKeeper
Issue
An error is reported when a user attempts to access ZooKeeper from an MRS cluster.
Symptom
When a user uses zkcli.sh to access ZooKeeper on the MRS master node, an error is reported.
Cause Analysis
The command used by the user is incorrect. As a result, an error is reported.
Procedure
- Obtain the ZooKeeper IP address and port number. For details, see How Do I Obtain the ZooKeeper Address?
- Log in to the master node as user root.
- Run the following command to initialize environment variables:
source /opt/client/bigdata_env
- Run the following command to connect to ZooKeeper:
zkCli.sh -server IP address of the ZooKeeper node:Port number
The IP address of the node where ZooKeeper is located is the one queried in 1. Use commas (,) to separate multiple IP addresses.
- Run common commands such as ls / to view ZooKeeper information.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot