I found that the following error has been reported in the log:
WARN org.apache.zookeeper.server.NIOServerCnxn:Exception causing close of session 0x0 due to java.io.IOException: ZookeeperServer not running
When the node is searched, it is found that when the node is a leader, the zookeeper state is: It is probably not running, and the Follower node is normal.
I tried to delete the data in the datadir directory and it didn't work.
Can you give me some advice?
There seems to be the problem with the zk election process. Regardless of the "server not running" messages, is Zookeeper up and running and accepting client request?
Could you post 30 lines above and below the log message "WARN org.apache.zookeeper.server.NIOServerCnxn:Exception" for review?