Accessing ZooKeeper from an MRS Cluster
Issue
An error is reported when a user attempts to access ZooKeeper from an MRS cluster.
Symptom
The customer uses zkcli.sh to access ZooKeeper on the MRS Master node, but an error is reported.
Cause Analysis
The command used by the customer is incorrect. As a result, an error is reported.
Procedure
- Obtain the ZooKeeper IP 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 zkCli.sh -server IP address of the node where ZooKeeper is located:2181 command to connect to ZooKeeper of the MRS cluster.
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