Kafka Is Disconnected from the ZooKeeper Client
Symptom
The Kafka client is disconnected from the ZooKeeper client. Error message "Received event :disconnected::none: with disconnected Writer Zookeeper" is displayed in the client log.
Cause Analysis
When the Kafka client connects to the ZooKeeper client, the fsync operation takes a long time. As a result, the connection times out.
Procedure
- Log in to the node where the ZooKeeper client is located.
cd Client installation directory
source bigdata_env
kinit Component service user (Skip this step for clusters with Kerberos authentication disabled.)
- Run the following command to modify the file:
vim Client installation directory/zookeeper/conf/zoo.cfg
Increase the values of tickTime and syncLimit in the file.
For example, set tickTime to 3000 and syncLimit to 7.
- Save the file.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.