zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gopal <gopa...@idealinvent.com>
Subject Zookeeper is not started in repicated mode
Date Mon, 15 Sep 2014 05:53:57 GMT
Hi,

I am facing problem to start zookeeper server in replicated mode in windows machine its giving
error. I have created 3 servers to start in repliated mode

D:\zookeeper\zk-server-1\bin>java "-Dzookeeper.log.dir=D:\zookeeper\zk-server-1\bin\.."
"-Dzookeeper.root.logger=INFO,CONSOLE" -cp "D:\zookeeper\zk-server-1\b
in\..\build\classes;D:\zookeeper\zk-server-1\bin\..\build\lib\*;D:\zookeeper\zk-server-1\bin\..\*;D:\zookeeper\zk-server-1\bin\..\lib\*;D:\zookeeper\zk-server
-1\bin\..\conf" org.apache.zookeeper.server.quorum.QuorumPeerMain "D:\zookeeper\zk-server-1\bin\..\conf\zoo.cfg"
2014-09-15 10:55:13,393 [myid:] - INFO  [main:QuorumPeerConfig@103] - Reading configuration
from: D:\zookeeper\zk-server-1\bin\..\conf\zoo.cfg
2014-09-15 10:55:20,175 [myid:] - INFO  [main:QuorumPeerConfig@340] - Defaulting to majority
quorums
2014-09-15 10:55:20,177 [myid:] - ERROR [main:QuorumPeerMain@85] - Invalid config, exiting
abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing D:\zookeeper\zk-server-1\bin\..\conf\zoo.cfg
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:123)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.lang.IllegalArgumentException: zookeeper\zk1\data\myid file is missing
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:350)
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:119)
        ... 2 more
Invalid config, exiting abnormally

I have configured every thing even myid file is also there for all the three servers

I have configured zoo.cfg like 

tickTime=2000
dataDir= zookeeper/zk1/data/
clientPort=2183
initLimit=5
syncLimit=2
server.1=zoo1:2888:3888
server.2=zoo2:2888:3888
server.3=zoo3:2888:3888

Please help me to rectify this error . i am not able to find the solution.

Thanks & Regards 
Gopal Prasad 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message