hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: Error when run HBase Java Example
Date Thu, 13 Aug 2009 11:17:40 GMT
Jeff,

Did you start HBase? It also starts zookeeper on localhost for you.

J-D

On Thu, Aug 13, 2009 at 4:18 AM, zhang jianfeng<zjffdu@gmail.com> wrote:
> Hi all,
>
> I am a newbie to HBase, when I run the HBase Java Example on the get
> started.
>
> I meet some errors :
>
> /************************************************************************************************************************/
> 2009-08-13 16:11:22,093 WARN  [main] zookeeper.ZooKeeperWrapper(351): Failed
> to create /hbase -- check quorum servers, currently=localhost:21810
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase
>    at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
>    at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
>    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:522)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:342)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:365)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.checkOutOfSafeMode(ZooKeeperWrapper.java:478)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:845)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:515)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:524)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:528)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:101)
>    at HBaseExample.main(HBaseExample.java:19)
> 2009-08-13 16:11:22,108 DEBUG [main]
> client.HConnectionManager$TableServers(852): Sleeping 5000ms, waiting for
> root region.
> 2009-08-13 16:11:27,827 WARN  [main] zookeeper.ZooKeeperWrapper(351): Failed
> to create /hbase -- check quorum servers, currently=localhost:21810
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase
>    at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
>    at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
>    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:522)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:342)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:365)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.checkOutOfSafeMode(ZooKeeperWrapper.java:478)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:845)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:515)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:524)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:528)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:123)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:101)
>    at HBaseExample.main(HBaseExample.java:19)
> 2009-08-13 16:11:27,827 DEBUG [main]
> client.HConnectionManager$TableServers(852): Sleeping 5000ms, waiting for
> root region.
>
> /************************************************************************************************************************/
>
>
> It seems zookeeper related, do I need to configure the zookeeper  ?
>
> Anyone have any ideas ?
>
>
> Thank you in advance.
>
>
> Jeff zhang
>

Mime
View raw message