hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: Compilation error: HBASE 0.98.4 with Snappy
Date Wed, 27 Aug 2014 00:07:10 GMT
On Tue, Aug 26, 2014 at 4:25 PM, Arthur.hk.chan@gmail.com <
arthur.hk.chan@gmail.com> wrote:

> Exception in thread "main" java.lang.RuntimeException: native snappy
> library not available: this version of libhadoop was built without snappy
> support.

​
You are almost there. Unfortunately the native Hadoop libraries you copied
into HBase's lib/native/Linux-amd64-64/ directory were
​apparently ​
built without snappy support, as the exception indicates. You'll need to
compile the native Hadoop libraries with snappy support enabled. Install
snappy-revel as Alex mentioned and then build the Hadoop native libraries.

1. Get Hadoop sources for the Hadoop version
2. tar xvzf ....
3. cd /path/to/hadoop/src
4. mvn -DskipTests clean install
​ -Drequire.snappy=true​
-Pnative
5. cp
hadoop-common-project/hadoop-common/target/native/target/usr/local/lib/libhadoop.*
/path/to/hbase/lib/native/Linux-amd64-64

​(The -Drequire.snappy=true will fail the build if Snappy link libraries
are not installed, so you can be sure of this.)​


-- 
Best regards,

   - Andy

Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)

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