hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: hbase 0.94.x and hadoop 2.2
Date Tue, 07 Jan 2014 00:55:49 GMT
By default, 2.0.0-alpha is in effect for hadoop 2.0 profile in 0.94

I used the following command and it builds :

mvn -Dhadoop.profile=2.0 clean package -DskipTests

Here is the diff I used to compile against hadoop 2.2 :

Index: pom.xml
===================================================================
--- pom.xml (revision 1556091)
+++ pom.xml (working copy)
@@ -2241,7 +2241,7 @@
         </property>
       </activation>
       <properties>
-        <hadoop.version>2.0.0-alpha</hadoop.version>
+        <hadoop.version>2.2.0</hadoop.version>
         <slf4j.version>1.6.1</slf4j.version>
       </properties>
       <dependencies>


On Mon, Jan 6, 2014 at 4:36 PM, Kim Chew <kchew534@gmail.com> wrote:

> Hello all,
>
> Does hbase 0.94.x support hadoop 2.2?
>
> Because I got this exception when trying to connect to a table,
>
> Exception in thread "main" java.lang.NoSuchMethodError:
>
> org.apache.hadoop.net.NetUtils.getInputStream(Ljava/net/Socket;)Ljava/io/InputStream;
>     at
>
> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:437)
>     at
>
> org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1124)
>     at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:974)
>     at
>
> org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:86)
>     at com.sun.proxy.$Proxy7.getProtocolVersion(Unknown Source)
>     at
>
> org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:138)
>     at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:208)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:1367)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:1326)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:1313)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:1001)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:896)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:998)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:900)
>     at
>
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:857)
>     at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:233)
>     at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:173)
>     at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:132)
>
> So I believe the answer is no. What version of HBase should I use then?
>
> Thanks.
>
> Kim
>

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