hadoop - Issues with zookeeper -


i have issues zookeeper.

1) not able create zookeeper_server.pid in datadir. have tried suggestion of manually creating myid in datadir plus rwx permission given recursively. but, still getting following error while stopping zookeeper:

 datadir = datadir=/usr/local/hadoop/zookeeper/snapshot error: not find file /usr/local/hadoop/zookeeper/snapshot  

2) trying manage zookeeper manually while installing hbase. due previous issue not able launch single instance.

2013-08-26 12:29:28,908 - info  [main:quorumpeerconfig@310] - defaulting majority quorums 2013-08-26 12:29:28,917 - fatal [main:quorumpeermain@83] - invalid config, exiting abnormally org.apache.zookeeper.server.quorum.quorumpeerconfig$configexception: error processing /home/ubuntu/zookeeper/bin/../conf/zoo.cfg     @ org.apache.zookeeper.server.quorum.quorumpeerconfig.parse(quorumpeerconfig.java:110)     @ org.apache.zookeeper.server.quorum.quorumpeermain.initializeandrun(quorumpeermain.java:99)     @ org.apache.zookeeper.server.quorum.quorumpeermain.main(quorumpeermain.java:76) caused by: java.lang.illegalargumentexception: /home/ubuntu/zookeeper/snapshot/myid file missing     @ org.apache.zookeeper.server.quorum.quorumpeerconfig.parseproperties(quorumpeerconfig.java:320)     @ org.apache.zookeeper.server.quorum.quorumpeerconfig.parse(quorumpeerconfig.java:106)     ... 2 more invalid config, exiting abnormally  

3) tried hbase managed zookeeper. but, in single instance of zookeeper not able launch , throwing following error:

zkserver3: java.io.ioexception: not find address: slave1 in list of zookeeper quorum servers zkserver3:  @ org.apache.hadoop.hbase.zookeeper.hquorumpeer.writemyid(hquorumpeer.java:140) zkserver3:  @ org.apache.hadoop.hbase.zookeeper.hquorumpeer.main(hquorumpeer.java:61) zkserver2: java.io.ioexception: not find address: slave in list of zookeeper quorum servers zkserver2:  @ org.apache.hadoop.hbase.zookeeper.hquorumpeer.writemyid(hquorumpeer.java:140) zkserver2:  @ org.apache.hadoop.hbase.zookeeper.hquorumpeer.main(hquorumpeer.java:61) starting master, logging /home/ubuntu/hbase/logs/hbase-ubuntu-master-ip-10-164-98-114.out rgserver3: starting regionserver, logging /home/ubuntu/hbase/bin/../logs/hbase-ubuntu-regionserver-ip-xxxxxxx.out rgserver2: starting regionserver, logging /home/ubuntu/hbase/bin/../logs/hbase-ubuntu-regionserver-ip-xxxxxxx.out rgserver1: starting regionserver, logging /home/ubuntu/hbase/bin/../logs/hbase-ubuntu-regionserver-ip-xxxxxx.out 

updated logs issue 1

jmx enabled default using config: /usr/local/hadoop/zookeeper/bin/../conf/zoo.cfg starting zookeeper ...  /usr/local/hadoop/zookeeper/bin/zkserver.sh: 80: /usr/local/hadoop/zookeeper/bin/zkserver.sh: cannot create /usr/local/hadoop/zookeeper/snapshot # number of snapshots retain in datadir/zookeeper_server.pid: directory nonexistent started hduser@naresh-pc:/usr/local/hadoop/zookeeper/conf$ 2013-08-27 12:06:16,688 - info  [main:quorumpeerconfig@90] - reading configuration from: /usr/local/hadoop/zookeeper/bin/../conf/zoo.cfg 2013-08-27 12:06:16,692 - warn  [main:quorumpeermain@105] - either no config or no quorum defined in config, running  in standalone mode 2013-08-27 12:06:16,764 - info  [main:quorumpeerconfig@90] - reading configuration from: /usr/local/hadoop/zookeeper/bin/../conf/zoo.cfg 2013-08-27 12:06:16,765 - info  [main:zookeeperservermain@94] - starting server 2013-08-27 12:06:16,780 - info  [main:environment@97] - server environment:zookeeper.version=3.3.3-1073969, built on 02/23/2011 22:27 gmt 2013-08-27 12:06:16,780 - info  [main:environment@97] - server environment:host.name=naresh-pc 2013-08-27 12:06:16,781 - info  [main:environment@97] - server environment:java.version=1.6.0_27 2013-08-27 12:06:16,781 - info  [main:environment@97] - server environment:java.vendor=sun microsystems inc. 2013-08-27 12:06:16,781 - info  [main:environment@97] - server environment:java.home=/usr/lib/jvm/java-6-openjdk-i386/jre 2013-08-27 12:06:16,782 - info  [main:environment@97] - server environment:java.class.path=/usr/local/hadoop/zookeeper/bin/../build/classes:/usr/local/hadoop/zookeeper/bin/../build/lib/*.jar:/usr/local/hadoop/zookeeper/bin/../zookeeper-3.3.3.jar:/usr/local/hadoop/zookeeper/bin/../lib/log4j-1.2.15.jar:/usr/local/hadoop/zookeeper/bin/../lib/jline-0.9.94.jar:/usr/local/hadoop/zookeeper/bin/../src/java/lib/ivy-2.1.0.jar:/usr/local/hadoop/zookeeper/bin/../conf::/usr/local/hadoop/hive/lib:/usr/local/hadoop/lib:/usr/local/hadoop/hive/lib/hive-contrib-0.9.0.jar:/usr/local/hadoop/storm/lib/jzmq-2.1.0.jar:/usr/local/hadoop/storm/lib/ring-servlet-0.3.11.jar:/usr/local/hadoop/storm/lib/compojure-0.6.4.jar:/usr/local/hadoop/storm/lib/commons-logging-1.1.1.jar:/usr/local/hadoop/storm/lib/curator-framework-1.0.1.jar:/usr/local/hadoop/storm/lib/curator-client-1.0.1.jar:/usr/local/hadoop/storm/lib/ring-jetty-adapter-0.3.11.jar:/usr/local/hadoop/storm/lib/carbonite-1.5.0.jar:/usr/local/hadoop/storm/lib/hiccup-0.3.6.jar:/usr/local/hadoop/storm/lib/servlet-api-2.5.jar:/usr/local/hadoop/storm/lib/commons-codec-1.4.jar:/usr/local/hadoop/storm/lib/disruptor-2.10.1.jar:/usr/local/hadoop/storm/lib/asm-4.0.jar:/usr/local/hadoop/storm/lib/objenesis-1.2.jar:/usr/local/hadoop/storm/lib/junit-3.8.1.jar:/usr/local/hadoop/storm/lib/clout-0.4.1.jar:/usr/local/hadoop/storm/lib/json-simple-1.1.jar:/usr/local/hadoop/storm/lib/libthrift7-0.7.0.jar:/usr/local/hadoop/storm/lib/minlog-1.2.jar:/usr/local/hadoop/storm/lib/jetty-6.1.26.jar:/usr/local/hadoop/storm/lib/tools.logging-0.2.3.jar:/usr/local/hadoop/storm/lib/tools.cli-0.2.2.jar:/usr/local/hadoop/storm/lib/joda-time-2.0.jar:/usr/local/hadoop/storm/lib/slf4j-api-1.5.8.jar:/usr/local/hadoop/storm/lib/tools.macro-0.1.0.jar:/usr/local/hadoop/storm/lib/log4j-1.2.16.jar:/usr/local/hadoop/storm/lib/clj-time-0.4.1.jar:/usr/local/hadoop/storm/lib/snakeyaml-1.9.jar:/usr/local/hadoop/storm/lib/commons-exec-1.1.jar:/usr/local/hadoop/storm/lib/commons-lang-2.5.jar:/usr/local/hadoop/storm/lib/httpcore-4.1.jar:/usr/local/hadoop/storm/lib/commons-io-1.4.jar:/usr/local/hadoop/storm/lib/httpclient-4.1.1.jar:/usr/local/hadoop/storm/lib/commons-fileupload-1.2.1.jar:/usr/local/hadoop/storm/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/storm/lib/servlet-api-2.5-20081211.jar:/usr/local/hadoop/storm/lib/reflectasm-1.07-shaded.jar:/usr/local/hadoop/storm/lib/zookeeper-3.3.3.jar:/usr/local/hadoop/storm/lib/math.numeric-tower-0.0.1.jar:/usr/local/hadoop/storm/lib/jgrapht-0.8.3.jar:/usr/local/hadoop/storm/lib/kryo-2.17.jar:/usr/local/hadoop/storm/lib/jline-0.9.94.jar:/usr/local/hadoop/storm/lib/clojure-1.4.0.jar:/usr/local/hadoop/storm/lib/ring-core-0.3.10.jar:/usr/local/hadoop/storm/lib/guava-13.0.jar:/usr/local/hadoop/storm/lib/core.incubator-0.1.0.jar:/usr/local/hadoop/storm/lib/slf4j-log4j12-1.5.8.jar:/usr/local/hadoop/storm/storm-0.8.1.jar:/usr/local/hadoop/storm/conf/storm.yaml 2013-08-27 12:06:16,782 - info  [main:environment@97] - server environment:java.library.path=/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386:/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib 2013-08-27 12:06:16,782 - info  [main:environment@97] - server environment:java.io.tmpdir=/tmp 2013-08-27 12:06:16,782 - info  [main:environment@97] - server environment:java.compiler=<na> 2013-08-27 12:06:16,782 - info  [main:environment@97] - server environment:os.name=linux 2013-08-27 12:06:16,783 - info  [main:environment@97] - server environment:os.arch=i386 2013-08-27 12:06:16,783 - info  [main:environment@97] - server environment:os.version=3.2.0-49-generic-pae 2013-08-27 12:06:16,783 - info  [main:environment@97] - server environment:user.name=hduser 2013-08-27 12:06:16,783 - info  [main:environment@97] - server environment:user.home=/home/hduser 2013-08-27 12:06:16,783 - info  [main:environment@97] - server environment:user.dir=/usr/local/hadoop/zookeeper/conf 2013-08-27 12:06:16,829 - info  [main:zookeeperserver@663] - ticktime set 2000 2013-08-27 12:06:16,830 - info  [main:zookeeperserver@672] - minsessiontimeout set -1 2013-08-27 12:06:16,830 - info  [main:zookeeperserver@681] - maxsessiontimeout set -1 2013-08-27 12:06:16,911 - info  [main:nioservercnxn$factory@143] - binding port 0.0.0.0/0.0.0.0:2181 2013-08-27 12:06:17,013 - info  [main:filesnap@82] - reading snapshot /usr/local/hadoop/zookeeper/snapshot/version-2/snapshot.10e27 2013-08-27 12:06:17,139 - info  [main:filetxnsnaplog@208] - snapshotting: 10e27 

while stopping

jmx enabled default using config: /usr/local/hadoop/zookeeper/bin/../conf/zoo.cfg stopping zookeeper ...  error: not find file /usr/local/hadoop/zookeeper/snapshot # number of snapshots retain in datadir/zookeeper_server.pid 


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -