Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - HBase Standalone Error


Copy link to this message
-
Re: HBase Standalone Error
Stack 2014-01-17, 18:19
On Tue, Jan 14, 2014 at 9:18 PM, Jeff Zhang <[EMAIL PROTECTED]> wrote:

> 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>
>
>
On my mac, /var has these perms:

drwxr-xr-x  24 root  wheel  816 Dec  9 15:46 /var/

Is that same as yours?

When I try to use your configs., my failure is different but the expected:

java.io.IOException: Unable to create data directory
/var/zookeeper/zookeeper_0/version-2
at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:85)
at
org.apache.zookeeper.server.ZooKeeperServer.<init>(ZooKeeperServer.java:213)
at
org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:162)
at
org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:131)
at
org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:164)
at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:134)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2779)
The refguide does not tell you use /var, right?

You might as well paste the full .log and .out here.

Thanks Jeff,
St.Ack

> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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)