-
Notes
This page gives a list of common errors you may experience with ZooKeeper on Windows.
-
zkServer.cmd: The filename, directory name, or volume label syntax is incorrect
How to fix this error:
► You have to double-quote the path "%JAVA_HOME%\bin\java.exe
" in the file "%ZK_HOME%\bin\zkEnv.cmd
"
-
zkServer.cmd: 'C:\Program' is not recognized as an internal or external command
-
How to fix this error - Solution (1):
► You have to double-quote the path "%JAVA%
" in the file "%ZK_HOME%\bin\zkServer.cmd
"
-
How to fix this error - Solution (2):
► Copy and rename the file "%ZK_HOME%\conf\zoo_sample.cfg
" to "%ZK_HOME%\conf\zoo.cfg
"
-
zkServer.cmd: Invalid config, exiting abnormally (myid file is missing)
How to fix this error:
► You have to create the directory that is defined by the property "dataDir
" in the file "%ZK_HOME%\conf\zoo.cfg
".
► You have to add a "myid
" file to this directory ("dataDir
").
► You have also to create the directory that is defined by the property "dataLogDir
" in the file "%ZK_HOME%\conf\zoo.cfg
".
-
zkServer.cmd: Invalid config, exiting abnormally (The filename, directory name, or volume label syntax is incorrect)
-
How to fix this error - Solution (1):
► file "%ZK_HOME%\conf\zoo.cfg
": delete this line
► file "%ZK_HOME%\conf\zoo.cfg
": add the server(s) static configuration
► You can delete the file "%ZK_HOME%\conf\zoo.cfg.dynamic.100000000
"
-
How to fix this error - Solution (2):
I had to change the config in the file "%ZK_HOME%\conf\zoo.cfg
"
Current config:
Replaced with:
-
How to fix this error - Solution (3):
I had to change the config in the file "%ZK_HOME%\conf\zoo.cfg
"
Current config:
Replaced with:
-
zkServer.cmd: Problem starting AdminServer on address 0.0.0.0, port 8080
How to fix this error:
The default port is 8080
for the Jetty enbeded server.
► use the property "admin.serverPort
" in the "zoo.cfg
" file to set a different port: "admin.serverPort=8081
"
► or, modify the "zkServer.cmd
" file and use the java system property "zookeeper.admin.serverPort
" to override the default value.