hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: HBase Standalone Error
Date Wed, 15 Jan 2014 05:18:10 GMT
Hi Stack,

here's the step I use,

1. Download hbase 0.96 and untar it
2. Edit the hbase-site.xml as following
<configuration>
    <property>
        <name>hbase.rootdir</name>
            <value>/var/hbase</value>
    </property>
     <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>/var/zookeeper</value>
    </property>
</configuration>

3.  start hbase ( bin/start-hbase.sh )

Environments:
Mac 10.8  JDK 1.7

no zookeeper process.  I only see HMaster when I run jps

And I see the following error besides the zk errors I describe above

2014-01-15 13:15:46,379 ERROR [main] master.HMasterCommandLine: Master
exiting
java.lang.RuntimeException: Failed suppression of fs shutdown hook:
Thread[Thread-5,5,main]
    at
org.apache.hadoop.hbase.regionserver.ShutdownHook.suppressHdfsShutdownHook(ShutdownHook.java:203)
    at
org.apache.hadoop.hbase.regionserver.ShutdownHook.install(ShutdownHook.java:84)
    at
org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:197)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:423)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:180)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:134)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2779)
2014-01-15 13:15:47,601 INFO  [main] util.VersionInfo: HBase 0.96.1.1



On Tue, Jan 14, 2014 at 10:13 PM, Stack <stack@duboce.net> wrote:

> This is probably our most important bit of doc so I'd like to fix it.
>  Please list the steps you followed.  Did you have a previous instance of
> HBase up at any time?  Did you restart server?  Is there a zk process
> running at the time of the above start?
>
> Thank you,
> St.Ack
>
>
> On Tue, Jan 14, 2014 at 4:58 AM, Jeff Zhang <zjffdu@gmail.com> wrote:
>
> > I download hbase 0.96, and run it in standalone mode by following the
> > instruction of here http://hbase.apache.org/book/quickstart.html
> >
> > But get the following error, could anyone help on this.
> >
> > 2014-01-14 20:51:25,243 WARN  [main] zookeeper.ZKUtil: clean znode for
> > master, quorum=localhost:2181, baseZNode=/hbase Unable to get data of
> znode
> > /hbase/master
> > org.apache.zookeeper.KeeperException$SessionExpiredException:
> > KeeperErrorCode = Session expired for /hbase/master
> >     at
> > org.apache.zookeeper.KeeperException.create(KeeperException.java:127)
> >     at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> >     at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1151)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.getData(RecoverableZooKeeper.java:337)
> >     at
> > org.apache.hadoop.hbase.zookeeper.ZKUtil.getDataNoWatch(ZKUtil.java:777)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.MasterAddressTracker.deleteIfEquals(MasterAddressTracker.java:170)
> >     at org.apache.hadoop.hbase.ZNodeClearer.clear(ZNodeClearer.java:160)
> >     at
> >
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:138)
> >     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> >     at
> >
> >
> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
> >     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2779)
> > 2014-01-14 20:51:25,245 ERROR [main] zookeeper.ZooKeeperWatcher: clean
> > znode for master, quorum=localhost:2181, baseZNode=/hbase Received
> > unexpected KeeperException, re-throwing exception
> > org.apache.zookeeper.KeeperException$SessionExpiredException:
> > KeeperErrorCode = Session expired for /hbase/master
> >     at
> > org.apache.zookeeper.KeeperException.create(KeeperException.java:127)
> >     at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> >     at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1151)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.getData(RecoverableZooKeeper.java:337)
> >     at
> > org.apache.hadoop.hbase.zookeeper.ZKUtil.getDataNoWatch(ZKUtil.java:777)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.MasterAddressTracker.deleteIfEquals(MasterAddressTracker.java:170)
> >     at org.apache.hadoop.hbase.ZNodeClearer.clear(ZNodeClearer.java:160)
> >     at
> >
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:138)
> >     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> >     at
> >
> >
> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
> >     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2779)
> > 2014-01-14 20:51:25,246 WARN  [main] zookeeper.ZooKeeperNodeTracker:
> Can't
> > get or delete the master znode
> > org.apache.zookeeper.KeeperException$SessionExpiredException:
> > KeeperErrorCode = Session expired for /hbase/master
> >     at
> > org.apache.zookeeper.KeeperException.create(KeeperException.java:127)
> >     at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> >     at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1151)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.getData(RecoverableZooKeeper.java:337)
> >
> > --
> > Best Regards
> >
> > Jeff Zhang
> >
>



-- 
Best Regards

Jeff Zhang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message