Hello, I am trying to execute this simple scenario.
untar/gz the 3.3.5 version of ZK copy the zoo_sample.cfg to zookeeper.cfg run sudo .../zkServer.sh start the o/p of the above command is "JMX enabled by default Using config: /opt/zookeeper-3.3.5/bin/../conf/zoo.cfg Starting zookeeper ... STARTED" then i run sudo .../zkServer.sh status for the above command i get the o/p of "JMX enabled by default Using config: /opt/zookeeper-3.3.5/bin/../conf/zoo.cfg Error contacting service. It is probably not running. " attempt to re run the start command, indicates that the server is already running. executing lsof/netstat doesn't show any ports being used by the server process. the contents of zookeeper.out is "2012-09-10 12:06:21,245 - INFO [main:QuorumPeerConfig@90] - Reading configuration from: /opt/zookeeper-3.3.5/bin/../conf/zoo.cfg 2012-09-10 12:06:21,341 - WARN [main:QuorumPeerMain@105] - Either no config or no quorum defined in config, running in standalone mode 2012-09-10 12:06:21,354 - INFO [main:QuorumPeerConfig@90] - Reading configuration from: /opt/zookeeper-3.3.5/bin/../conf/zoo.cfg 2012-09-10 12:06:21,354 - INFO [main:ZooKeeperServerMain@94] - Starting server 2012-09-10 12:06:21,361 - INFO [main:Environment@97] - Server environment:zookeeper.version=3.3.5-1301095, built on 03/15/2012 19:48 GMT 2012-09-10 12:06:21,361 - INFO [main:Environment@97] - Server environment:host.name=xxx 2012-09-10 12:06:21,361 - INFO [main:Environment@97] - Server environment:java.version=1.6.0_33 2012-09-10 12:06:21,362 - INFO [main:Environment@97] - Server environment:java.vendor=Sun Microsystems Inc. 2012-09-10 12:06:21,362 - INFO [main:Environment@97] - Server environment:java.home=/opt/jdk1.6.0_33/jre 2012-09-10 12:06:21,363 - INFO [main:Environment@97] - Server environment:java.class.path=/opt/zookeeper-3.3.5/bin/../build/classes:/opt/zookeeper-3.3.5/bin/../build/lib/*.jar:/opt/zookeeper-3.3.5/bin/../zookeeper-3.3.5.jar:/opt/zookeeper-3.3.5/bin/../lib/log4j-1.2.15.jar:/opt/zookeeper-3.3.5/bin/../lib/jline-0.9.94.jar:/opt/zookeeper-3.3.5/bin/../src/java/lib/*.jar:/opt/zookeeper-3.3.5/bin/../conf: 2012-09-10 12:06:21,363 - INFO [main:Environment@97] - Server environment:java.library.path=/opt/jdk1.6.0_33/jre/lib/amd64/server:/opt/jdk1.6.0_33/jre/lib/amd64:/opt/jdk1.6.0_33/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 2012-09-10 12:06:21,363 - INFO [main:Environment@97] - Server environment:java.io.tmpdir=/tmp 2012-09-10 12:06:21,368 - INFO [main:Environment@97] - Server environment:java.compiler=<NA> 2012-09-10 12:06:21,369 - INFO [main:Environment@97] - Server environment:os.name=Linux 2012-09-10 12:06:21,430 - INFO [main:Environment@97] - Server environment:os.arch=amd64 2012-09-10 12:06:21,431 - INFO [main:Environment@97] - Server environment:os.version=3.2.21-1.32.6.amzn1.x86_64 2012-09-10 12:06:21,431 - INFO [main:Environment@97] - Server environment:user.name=root 2012-09-10 12:06:21,432 - INFO [main:Environment@97] - Server environment:user.home=/root 2012-09-10 12:06:21,432 - INFO [main:Environment@97] - Server environment:user.dir=/opt/zookeeper-3.3.5/bin 2012-09-10 12:06:21,441 - INFO [main:ZooKeeperServer@673] - tickTime set to 2000 2012-09-10 12:06:21,445 - INFO [main:ZooKeeperServer@682] - minSessionTimeout set to -1 2012-09-10 12:06:21,445 - INFO [main:ZooKeeperServer@691] - maxSessionTimeout set to -1 2012-09-10 12:06:21,482 - INFO [main:NIOServerCnxn$Factory@143] - binding to port 0.0.0.0/0.0.0.0:2181 2012-09-10 12:06:21,612 - INFO [main:FileSnap@82] - Reading snapshot /tmp/zookeeper/version-2/snapshot.0 2012-09-10 12:06:21,618 - INFO [main:FileTxnSnapLog@254] - Snapshotting: 0" The machine on which i am seeing this behavior is a AWS box, with Amazon AMI image. the JAVA_HOME has been set to /opt/jdk1.6.0_33/. which is different from the one indicated by the zookeeper.out. I am running the command in sudo mode. I have a similar set up on another box, which is running fine. Please let me know how to fix this problem. Thanks, Naveen -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/zkServer-sh-not-starting-tp7577924.html Sent from the zookeeper-user mailing list archive at Nabble.com.
