IllegalArgumentException: C:UsersjaweDocumentszookeeper1datamyid file is missing

  apache-zookeeper, windows

I am trying to configure Zookeeper Ensemble with 3 instances locally on Windows but it fails when i try to start the first instance.

The first zoo conf is as follows:

tickTime=2000
initLimit=10
syncLimit=5
dataDir=C:/Users/jawe/Documents/zookeeper1/data
clientPort=2181

server.1=localhost:2888:3888
server.2=localhost:2889:3889
server.3=localhost:2890:3890

i run the following:

C:UsersjaweDocuments> .zookeeper1binzkServer.cmd

And get this error message:

C:UsersjaweDocuments>call "C:Program FilesJavajre1.8.0_301"binjava "-Dzookeeper.log.dir=C:UsersjaweDocumentszookeeper1bin.." "-Dzookeeper.root.logger=INFO,CONSOLE" -cp "C:UsersjaweDocumentszookeeper1bin..buildclasses;C:UsersjaweDocumentszookeeper1bin..buildlib*;C:UsersjaweDocumentszookeeper1bin..*;C:UsersjaweDocumentszookeeper1bin..lib*;C:UsersjaweDocumentszookeeper1bin..conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "C:UsersjaweDocumentszookeeper1bin..confzoo.cfg"
2021-08-25 10:22:57,850 [myid:] - INFO  [main:[email protected]] - Reading configuration from: C:UsersjaweDocumentszookeeper1bin..confzoo.cfg
2021-08-25 10:22:57,868 [myid:] - INFO  [main:[email protected]] - Resolved hostname: localhost to address: localhost/127.0.0.1
2021-08-25 10:22:57,868 [myid:] - INFO  [main:[email protected]] - Resolved hostname: localhost to address: localhost/127.0.0.1
2021-08-25 10:22:57,884 [myid:] - INFO  [main:[email protected]] - Resolved hostname: localhost to address: localhost/127.0.0.1
2021-08-25 10:22:57,884 [myid:] - INFO  [main:[email protected]] - Defaulting to majority quorums
2021-08-25 10:22:57,884 [myid:] - ERROR [main:[email protected]] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing C:UsersjaweDocumentszookeeper1bin..confzoo.cfg
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:156)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:104)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:81)
Caused by: java.lang.IllegalArgumentException: C:UsersjaweDocumentszookeeper1datamyid file is missing
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:408)
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:152)
        ... 2 more
Invalid config, exiting abnormally

C:UsersjaweDocuments>

I have checked and the files does exist:

PS C:UsersjaweDocuments> Get-ChildItem .zookeeper1data
    Directory: C:UsersjaweDocumentszookeeper1data
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         8/25/2021   7:56 AM                version-2
-a----         8/25/2021   8:39 AM              1 myid.txt

Any suggestions would be appreciated.

Source: Windows Questions

LEAVE A COMMENT