Zookeeper will not attempt to authenticate using SASL (unknown error)

There is an error about the Zookeeper connection:

    Opening socket conection to server 127.0.0.1/127.0.0.1:2181 Will not atte pt to authenticate using SASL (unknown error) KeeperErrorCode = ConnectionLoss for /testorg.apache.zookeeper.KeeperException$OperationTimeoutException:KeeperErrorCode = OperationTimeout

To explain the above three questions; Build and configure zookeeper server locally on Windows, and then test the code. 1,2 problems occur. The problem of 3 is the problem reported by the project; There are no firewall, JAR, hosts conflicts, etc.
Solution: Look at your own configuration of Zoo.cfg

    dataDirdataLogDir

The path here is configured as a full path, such as D:\\Users\ WB \\ soft\\ Zookeeper -3.4.14\\ Data; D: \ \ Users \ wb \ \ soft \ \ zookeeper – 3.4.14 \ \ log; Notice the double backslash ‘\\’

Read More: