mtitek
  • Cloud
  • Big Data
  • CI
  • Install
  • Samples
  • Java
  • Ubuntu
  • Maven
  • Archive
ZooKeeper | (Windows) Common ZooKeeper Errors
  1. Notes
  2. zkServer.cmd: The filename, directory name, or volume label syntax is incorrect
  3. zkServer.cmd: 'C:\Program' is not recognized as an internal or external command
  4. zkServer.cmd: Invalid config, exiting abnormally (myid file is missing)
  5. zkServer.cmd: Invalid config, exiting abnormally (The filename, directory name, or volume label syntax is incorrect)
  6. zkServer.cmd: Problem starting AdminServer on address 0.0.0.0, port 8080

  1. Notes
    This page gives a list of common errors you may experience with ZooKeeper on Windows.
  2. 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_ROOT%\bin\zkEnv.cmd"
  3. 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_ROOT%\bin\zkServer.cmd"

    • How to fix this error - Solution (2):
      ► Copy and rename the file "%ZK_ROOT%\conf\zoo_sample.cfg" to "%ZK_ROOT%\conf\zoo.cfg"
  4. 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_ROOT%\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_ROOT%\conf\zoo.cfg".
  5. 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_ROOT%\conf\zoo.cfg": delete this line

      ► file "%ZK_ROOT%\conf\zoo.cfg": add the server(s) static configuration

      ► You can delete the file "%ZK_ROOT%\conf\zoo.cfg.dynamic.100000000"

    • How to fix this error - Solution (2):

      I had to change the config in the file "%ZK_ROOT%\conf\zoo.cfg"

      Current config:

      Replaced with:

    • How to fix this error - Solution (3):

      I had to change the config in the file "%ZK_ROOT%\conf\zoo.cfg"

      Current config:

      Replaced with:

  6. 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.
© 2020  mtitek