hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Azuryy Yu <azury...@gmail.com>
Subject Re: HBase 0.94 on hadoop 2.2.0 (2.4.0)
Date Thu, 24 Apr 2014 01:56:57 GMT
This is a serious issue, HBase-0.94 doesn't support Hadoop-2.4, HttpServer
was removed in the Hadoop2.4, but HBase InfoServer still use it, and there
are also some MapReduce issues, so if you build HBase-0.94 against
Hadoop-2.4, it will fail.


On Thu, Apr 24, 2014 at 4:31 AM, Ted Yu <yuzhihong@gmail.com> wrote:

> There seems to be typo in your command line.
> To compile against hadoop 2.2 , you should use :
>
> mvn clean -DskipTests -Dhadoop.profile=2.0 -Dhadoop.version=2.2.0 <rest of
> command line>
>
>
> On Wed, Apr 23, 2014 at 12:15 PM, Lukáš Drbal <lukas.drbal@gmail.com>
> wrote:
>
> > Hi,
> >
> > iam trying run HBase on hadoop 2.2 but master can't start.
> >
> > I found a message in master log (snipped):
> >
> > 2014-04-23 20:58:24,246 FATAL org.apache.hadoop.hbase.master.HMaster:
> HBase
> > is having a problem with its Hadoop jars.  You may need to recompile
> HBase
> > against Hadoop version 2.2.0 or change your hadoop jars to start properly
> > java.lang.NoClassDefFoundError:
> > org/apache/hadoop/hdfs/protocol/FSConstants$SafeModeAction
> >         at
> > org.apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:240)
> >         at
> > org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:634)
> >         at
> >
> >
> org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:423)
> >         at
> >
> >
> org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:148)
> >         at
> >
> >
> org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:133)
> >         at
> >
> >
> org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:573)
> >         at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:433)
> >         at java.lang.Thread.run(Thread.java:745)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.hadoop.hdfs.protocol.FSConstants$SafeModeAction
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> >         ... 8 more
> > 2014-04-23 20:58:24,248 INFO org.apache.hadoop.hbase.master.HMaster:
> > Aborting
> > 2014-04-23 20:58:24,248 DEBUG org.apache.hadoop.hbase.master.HMaster:
> > Stopping service threads
> >
> >
> > I take actual 0.94 branch from git and run mvn clean install
> > assembly:single -Dhadoop.profile=2.2 -DskipTests
> >
> > Here is my modifications in pom.xml
> > https://gist.github.com/LesTR/56d7d6ddbeb184460251
> >
> > Local hadoop run fine and HBase has jars with right version
> >
> > root@hadoop-master:/usr/share/hbase/lib# ls -l hadoop*
> > -rw-r--r-- 1 lestr lestr   16778 Apr 23 20:10
> hadoop-annotations-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr   49750 Apr 23 20:10 hadoop-auth-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 2735584 Apr 23 20:10 hadoop-common-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 1352859 Apr 23 20:10
> hadoop-common-2.2.0-tests.jar
> > -rw-r--r-- 1 lestr lestr 5242252 Apr 23 20:10 hadoop-hdfs-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 1988460 Apr 23 20:10 hadoop-hdfs-2.2.0-tests.jar
> > -rw-r--r-- 1 lestr lestr  482042 Apr 23 20:10
> > hadoop-mapreduce-client-app-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr  656365 Apr 23 20:10
> > hadoop-mapreduce-client-common-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 1455001 Apr 23 20:10
> > hadoop-mapreduce-client-core-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr  117184 Apr 23 20:10
> > hadoop-mapreduce-client-hs-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr   35216 Apr 23 20:10
> > hadoop-mapreduce-client-jobclient-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 1434852 Apr 23 20:10
> > hadoop-mapreduce-client-jobclient-2.2.0-tests.jar
> > -rw-r--r-- 1 lestr lestr   21537 Apr 23 20:10
> > hadoop-mapreduce-client-shuffle-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr    2076 Apr 23 20:10
> hadoop-minicluster-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 1158936 Apr 23 20:10 hadoop-yarn-api-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr   94728 Apr 23 20:10
> hadoop-yarn-client-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr 1301627 Apr 23 20:10
> hadoop-yarn-common-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr  175554 Apr 23 20:10
> > hadoop-yarn-server-common-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr  467638 Apr 23 20:10
> > hadoop-yarn-server-nodemanager-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr  615387 Apr 23 20:10
> > hadoop-yarn-server-resourcemanager-2.2.0.jar
> > -rw-r--r-- 1 lestr lestr   35347 Apr 23 20:10
> > hadoop-yarn-server-tests-2.2.0-tests.jar
> > -rw-r--r-- 1 lestr lestr   25710 Apr 23 20:10
> > hadoop-yarn-server-web-proxy-2.2.0.jar
> > root@hadoop-master:/usr/share/hbase/lib#
> >
> > Same situation on hadoop 2.4.
> >
> > I found only org/apache/hadoop/hdfs/protocol/HdfsConstants$SafeModeAction
> > class in hadoop 2.{2,4}
> >
> > Any advice please?
> >
> > --
> > Save The World - http://www.worldcommunitygrid.org/
> > http://www.worldcommunitygrid.org/stat/viewMemberInfo.do?userName=LesTR
> >
> > LesTR
> >
>

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