zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vitalii Tymchyshyn <...@tym.im>
Subject Re: Zookeeper is not started in repicated mode
Date Mon, 15 Sep 2014 12:45:18 GMT
As far as I can see, your data dir is relative. Try makind it absolute by
prepending / or d:/ to it.

Best regards, Vitalii Tymchyshyn
15 вер. 2014 05:24, користувач "Gopal" <gopal.p@idealinvent.com> написав:

> 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