Support Questions
Find answers, ask questions, and share your expertise

Zookeeper error

Zookeeper error

New Contributor

Hi 

 

So I have installed three Zookeeper in Windows with 1,2 and 3 for different myid.

But it is giving error when I am trying to run the script for each of them with 

 

E:\Solr_Cloud\zookeeper\2\zookeeper\bin>call "C:\Program Files\Java\jdk1.8.0_212"\bin\java "-Dzookeeper.log.dir=E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\logs" "-Dzookeeper.root.logger=INFO,CONSOLE" "-Dzookeeper.log.file=zookeeper-admin-server-ADMIN.log" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:OnOutOfMemoryError=cmd /c taskkill /pid %%p /t /f" -cp "E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\build\classes;E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\build\lib\*;E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\*;E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\lib\*;E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\conf\zoo.cfg"
2020-05-13 02:04:27,773 [myid:] - INFO [main:QuorumPeerConfig@173] - Reading configuration from: E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\conf\zoo.cfg
2020-05-13 02:04:27,818 [myid:] - WARN [main:VerifyingFileFactory@65] - ..\data is relative. Prepend .\ to indicate that you're sure!
2020-05-13 02:04:27,823 [myid:] - INFO [main:QuorumPeerConfig@459] - clientPortAddress is 0.0.0.0:2182
2020-05-13 02:04:27,825 [myid:] - INFO [main:QuorumPeerConfig@463] - secureClientPort is not set
2020-05-13 02:04:27,825 [myid:] - INFO [main:QuorumPeerConfig@479] - observerMasterPort is not set
2020-05-13 02:04:27,825 [myid:] - INFO [main:QuorumPeerConfig@496] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2020-05-13 02:04:27,830 [myid:] - ERROR [main:QuorumPeerMain@98] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing E:\Solr_Cloud\zookeeper\2\zookeeper\bin\..\conf\zoo.cfg
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:197)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:124)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)
Caused by: java.lang.IllegalArgumentException: serverid  ■2 is not a number
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupMyId(QuorumPeerConfig.java:759)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupQuorumPeerConfig(QuorumPeerConfig.java:678)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:506)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:193)
... 2 more
Invalid config, exiting abnormally
2020-05-13 02:04:27,832 [myid:] - INFO [main:ZKAuditProvider@42] - ZooKeeper audit is disabled.
2020-05-13 02:04:27,859 [myid:] - ERROR [main:ServiceUtils@42] - Exiting JVM with code 2

E:\Solr_Cloud\zookeeper\2\zookeeper\bin>endlocal

E:\Solr_Cloud\zookeeper\2\zookeeper\bin>

 

Any Help would be helpful.

Thanks in advance.

Don't have an account?