problem
Start zookeeper crash under windows10.
solve
First, rename zoo_simple.cfg to zoo.cfg in the conf directory of the decompressed file of zk, then edit the zkServer.cmd file in the bin directory, and add pause in the last line, the startup will not flash It is easy to view error messages.
Error message:
Then open the zkEnv.cmd file:
it is found that the jdk environment variable is not set, so set the environment variable:
start zk after setting:
zk started successfully!