Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.5.5
-
None
-
None
-
Windows Server 2016 DataCenter edition
Firewall and User Access Control - both full disabled.Java used:
java version "1.8.0_212"
Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)Java package (from the Oracle site): jre-8u212-windows-x64.exe
Used the bin package of the ZooKeeper release.
Windows Server 2016 DataCenter edition Firewall and User Access Control - both full disabled. Java used : java version "1.8.0_212" Java(TM) SE Runtime Environment (build 1.8.0_212-b10) Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode) Java package (from the Oracle site) : jre-8u212-windows-x64.exe Used the bin package of the ZooKeeper release.
Description
When attepmting to start ZooKeeper using the ZKServer.cmd batch file, I receive the following error:
D:\apache-zookeeper-3.5.5-bin\bin>call "D:\jre1.8.0_212"\bin\java "-Dzookeeper.log.dir=D:\apache-zookeeper-3.5.5-bin\bin\..\logs" "-Dzookeeper.root.logger=ALL1,CONSOLE" "-Dzookeeper.log.file=zookeeper-ironman-server-TF-AMIR-BASTION.log" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:OnOutOfMemoryError=cmd /c taskkill /pid %%p /t /f" -cp "D:\apache-zookeeper-3.5.5-bin\bin\..\build\classes;D:\apache-zookeeper-3.5.5-bin\bin\..\build\lib\*;D:\apache-zookeeper-3.5.5-bin\bin\..\*;D:\apache-zookeeper-3.5.5-bin\bin\..\lib\*;D:\apache-zookeeper-3.5.5-bin\bin\..\conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "D:\apache-zookeeper-3.5.5-bin\bin\..\conf\zoo.cfg" 2019-06-25 08:40:41,391 [myid:] - INFO [main:QuorumPeerConfig@133] - Reading configuration from: D:\apache-zookeeper-3.5.5-bin\bin\..\conf\zoo.cfg 2019-06-25 08:40:41,391 [myid:] - ERROR [main:QuorumPeerMain@89] - Invalid config, exiting abnormally org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing D:\apache-zookeeper-3.5.5-bin\bin\..\conf\zoo.cfg at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:154) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:113) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82) Caused by: java.lang.IllegalArgumentException: dataDir is not set at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:368) at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:150) ... 2 more Invalid config, exiting abnormally
The zoo.cfg is a copy-paste from the zoo_sample.cfg - the dataDir parameter is pointing to E:/zookeeper - an existing empty directory.
The previous two stable releases start without any issues:
zookeeper-3.4.10.tar.gz
zookeeper-3.4.14.tar.gz
Last, but not least, the 3.5.5 release works fine for me on Windows 10 (fully updated), Windows Server 2008 R2 and Windows Server 2012 R2.