zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chaitanya_r <chaitanya_spr...@yahoo.com>
Subject How to start & stop zookeeper server?
Date Sat, 05 Apr 2014 00:37:16 GMT
I am new to Zookeeper and I am trying to understand it using book - 
Zookeeper by By Flavio Junqueira, Benjamin Reed
<http://shop.oreilly.com/product/0636920028901.do>  

As per this book the command to start the server is "bin/zkServer.sh start",
as I am using windows I have used the command as "bin\zkServer.cmd start",
then I am getting this error:

---------------------------------------------------------------------
D:\zoo\zookeeper-3.4.6>java
"-Dzookeeper.log.dir=D:\zoo\zookeeper-3.4.6\bin\.."
"-Dzookeeper.root.logger=INFO,CONSOLE" -cp
"D:\zoo\zookeeper-3.4.6\bin\..\build\classes;D:\zoo\zookeeper-3.4.6\bin\..\bu
ild\lib\*;D:\zoo\zookeeper-3.4.6\bin\..\*;D:\zoo\zookeeper-3.4.6\bin\..\lib\*;D:\zoo\zookeeper-3.4.6\bin\..\conf"
org.apache.zookeeper.server.quorum.QuorumPeerMain
"D:\zoo\zookeeper-3.4.6\bin\..\conf\
zoo.cfg" start
2014-04-05 05:55:11,268 [myid:] - INFO  [main:DatadirCleanupManager@78] -
autopurge.snapRetainCount set to 3
2014-04-05 05:55:11,284 [myid:] - INFO  [main:DatadirCleanupManager@79] -
autopurge.purgeInterval set to 0
2014-04-05 05:55:11,284 [myid:] - INFO  [main:DatadirCleanupManager@101] -
Purge task is not scheduled.
2014-04-05 05:55:11,284 [myid:] - WARN  [main:QuorumPeerMain@113] - Either
no config or no quorum defined in config, running  in standalone mode
2014-04-05 05:55:11,456 [myid:] - ERROR [main:ZooKeeperServerMain@54] -
Invalid arguments, exiting abnormally
java.lang.NumberFormatException: For input string:
"D:\zoo\zookeeper-3.4.6\bin\..\conf\zoo.cfg"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:449)
        at java.lang.Integer.parseInt(Integer.java:499)
        at
org.apache.zookeeper.server.ServerConfig.parse(ServerConfig.java:60)
        at
org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:83)
        at
org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
        at
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
2014-04-05 05:55:11,456 [myid:] - INFO  [main:ZooKeeperServerMain@55] -
Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]
Usage: ZooKeeperServerMain configfile | port datadir [ticktime] [maxcnxns]

D:\zoo\zookeeper-3.4.6>endlocal
---------------------------------------------------------------------

If I remove the "start" parameter as input then the server is starting fine.
Now once again I am follow the book and trying to shutdown the server using
command "bin\zkServer.cmd stop" then also I am getting same error message.

So please let me know:
1) How to shutdown a zookeeper server?
2) The book is really good in understanding the basic concepts, but as the
commands from this book are not working, Can I still follow this book for
learning Zookeeper or please suggest if I need to refer some other source
for learning Zookeeper.





--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/How-to-start-stop-zookeeper-server-tp7579739.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Mime
View raw message