Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> zkServer.sh not starting


Copy link to this message
-
Re: zkServer.sh not starting
maybe move zookeeper.cfg to zoo.cfg.

2012/9/10 maverick_muguda <[EMAIL PROTECTED]>

> 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

Sincerely yours,

     Apostolis Xekoukoulotakis
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB