Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 419CC9993 for ; Fri, 17 Feb 2012 07:04:15 +0000 (UTC) Received: (qmail 19764 invoked by uid 500); 17 Feb 2012 07:04:13 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 18066 invoked by uid 500); 17 Feb 2012 07:04:11 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 17970 invoked by uid 500); 17 Feb 2012 07:04:07 -0000 Delivered-To: apmail-hadoop-hbase-user@hadoop.apache.org Received: (qmail 17948 invoked by uid 99); 17 Feb 2012 07:04:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 07:04:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lblabs@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-lpp01m010-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 07:04:01 +0000 Received: by lagw12 with SMTP id w12so4758418lag.35 for ; Thu, 16 Feb 2012 23:03:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=UQyJfe4efDTWMj6au7rGdjSoqYC4yoLv5dh/JeG8WCo=; b=ErQZEliakDuVE82h+Ni3yQg5X9Y6Wit1ac0t6a7k4IV60/QVFcjaTK8MoWoilN2xhL 9Cp746WFP2N2z4RUdqmKHaxirWiTcSpHHIBljCRrvow8Rrimofsl6/2+sPRpByrdEo68 +zQ2rRKsHud5JsMpyI06smcE8DppTxzUeJUTk= MIME-Version: 1.0 Received: by 10.152.48.69 with SMTP id j5mr4575873lan.30.1329462219671; Thu, 16 Feb 2012 23:03:39 -0800 (PST) Received: by 10.112.25.163 with HTTP; Thu, 16 Feb 2012 23:03:39 -0800 (PST) Reply-To: bing.li@asu.edu In-Reply-To: References: Date: Fri, 17 Feb 2012 15:03:39 +0800 Message-ID: Subject: Re: ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries From: Bing Li To: user@hbase.apache.org Cc: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec55239725888d604b9238b64 --bcaec55239725888d604b9238b64 Content-Type: text/plain; charset=ISO-8859-1 Hi, J-D, I just made summary about the experiences to set up a pseudo-distributed mode HBase. 1) RedHat 9 is not suitable for running HBase and Hadoop. I don't know the reasons. Now Ubuntu is my choice. 2) After the pseudo-distributed mode of HDFS is configured, it is required to configure the hbase-env.sh and hbase-site.xml. The book, HBase the Definitive Guide, does not mentions hbase.env.xml. 3) It should set up JAVA_HOME, HBASE_CLASSPATH and HBASE_MANAGES_ZK. My hbase-env.sh is as follows. export JAVA_HOME=/opt/jdk1.6.1/ export HBASE_CLASSPATH=/opt/hbase-0.92.0/conf export HBASE_OPTS="-XX:+UseConcMarkSweepGC" export HBASE_MANAGES_ZK=true 4) When configuring hbase-site.xml, the property, hbase.cluster.distributed, must be set also. The book, HBase the Definitive Guide, does not do that either. My hbase-site.xml is as follows. hbase.rootdir hdfs://localhost:9000/hbase dfs.replication 1 hbase.cluster.distributed true I am a new user of HBase. Your suggestions are highly appreciated. Best regards, Bing On Wed, Feb 15, 2012 at 2:43 AM, Jean-Daniel Cryans wrote: > And what would be missing? It's all open source so this is the moment > where you can forever leave a trace in HBase :) > > J-D > > On Tue, Feb 14, 2012 at 12:35 AM, Bing Li wrote: > > Dear Jean-Daniel, > > > > The issue is solved. I think the book in the HBase the Definitive Guide > > does not give sufficient descriptions about the pseudo-distributed mode. > > > > Thanks so much! > > Bing > > > > On Tue, Feb 14, 2012 at 7:27 AM, Jean-Daniel Cryans >wrote: > > > >> Is zookeeper running properly? Is it where your shell expects it to > >> be? Can you access HBase's web ui on port 60010? > >> > >> J-D > >> > >> On Sun, Feb 12, 2012 at 1:00 PM, Bing Li wrote: > >> > Dear all, > >> > > >> > I am a new learner of HBase. I tried to set up my HBase on a > >> > pseudo-distributed HDFS. > >> > > >> > After starting HDFS by running ./start-dfs.sh and ./start-hbase.sh, I > >> > started the HBase shell. > >> > > >> > ./hbase shell > >> > > >> > It was started properly. However, when I typed the command, status, as > >> > follows. > >> > > >> > hbase(main):001:0> status > >> > > >> > It got the following exception. Since I had very limited experiences > to > >> use > >> > HBase, I could not figure out what the problem was. > >> > > >> > SLF4J: Class path contains multiple SLF4J bindings. > >> > SLF4J: Found binding in > >> > > >> > [jar:file:/opt/hbase-0.92.0/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class] > >> > SLF4J: Found binding in > >> > > >> > [jar:file:/opt/hadoop-1.0.0/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] > >> > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > >> > explanation. > >> > 12/02/13 04:34:01 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper > exists > >> > failed after 3 retries > >> > 12/02/13 04:34:01 WARN zookeeper.ZKUtil: hconnection Unable to set > >> watcher > >> > on znode /hbase/master > >> > org.apache.zookeeper.KeeperException$ConnectionLossException: > >> > KeeperErrorCode = ConnectionLoss for /hbase/master > >> > at > >> > org.apache.zookeeper.KeeperException.create(KeeperException.java:99) > >> > at > >> > org.apache.zookeeper.KeeperException.create(KeeperException.java:51) > >> > at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1003) > >> > at > >> > > >> > org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:154) > >> > at > >> > > >> > org.apache.hadoop.hbase.zookeeper.ZKUtil.watchAndCheckExists(ZKUtil.java:226) > >> > at > >> > > >> > org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.start(ZooKeeperNodeTracker.java:76) > >> > at > >> > > >> > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:580) > >> > at > >> > > >> > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.(HConnectionManager.java:569) > >> > at > >> > > >> > org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:186) > >> > at > >> > org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:98) > >> > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >> > Method) > >> > at > >> > > >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > >> > at > >> > > >> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > >> > at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > >> > at > >> > > >> > org.jruby.javasupport.JavaConstructor.newInstanceDirect(JavaConstructor.java:275) > >> > at > >> > > >> > org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:91) > >> > at > >> > > >> > org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:178) > >> > at > >> > > >> > org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322) > >> > at > >> > > >> > org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178) > >> > at > >> > > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182) > >> > at > >> > > >> > org.jruby.java.proxies.ConcreteJavaProxy$2.call(ConcreteJavaProxy.java:47) > >> > at > >> > > >> > org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322) > >> > > >> > Could you please give me a hand? Thanks so much! > >> > > >> > Best regards, > >> > Bing > >> > --bcaec55239725888d604b9238b64--