Help Center/ MapReduce Service/ Troubleshooting/ Using Kafka/ Kafka Is Disconnected from the ZooKeeper Client
Updated on 2023-11-30 GMT+08:00

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

  1. 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.)

  2. 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.

  3. Save the file.