Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
java.io.IOException: Compression algorithm 'snappy' previously failed test
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Naudus  
View profile  
 More options Feb 28 2012, 4:52 pm
From: "Peter Naudus" <pnau...@dataraker.com>
Date: Tue, 28 Feb 2012 16:52:00 -0500
Subject: java.io.IOException: Compression algorithm 'snappy' previously failed test
Hello All,

I am using HBase-0.92.0 and Hadoop-0.23.0 . When attempting to create a  
table with snappy compression it gets stuck in the PENDING_OPEN state with  
the following message repeated in the region server's log file:

2012-02-28 21:08:18,010 INFO  
org.apache.hadoop.hbase.regionserver.HRegionServer: Received request to  
open region: staging_dev,,1330462814322.1300b0adf5bfad3a8aa4d88326802171.
2012-02-28 21:08:18,010 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign:  
regionserver:60020-0x35c5c0fb080003 Attempting to transition node  
1300b0adf5bfad3a8aa4d88326802171 from M_ZK_REGION_OFFLINE to  
RS_ZK_REGION_OPENING
2012-02-28 21:08:18,017 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign:  
regionserver:60020-0x35c5c0fb080003 Successfully transitioned node  
1300b0adf5bfad3a8aa4d88326802171 from M_ZK_REGION_OFFLINE to  
RS_ZK_REGION_OPENING
2012-02-28 21:08:18,018 DEBUG  
org.apache.hadoop.hbase.regionserver.HRegion: Opening region: {NAME =>  
'staging_dev,,1330462814322.1300b0adf5bfad3a8aa4d88326802171.', STARTKEY  
=> '', ENDKEY => '', ENCODED => 1300b0adf5bfad3a8aa4d88326802171,}
2012-02-28 21:08:18,018 INFO org.apache.hadoop.hbase.regionserver.HRegion:  
Setting up tabledescriptor config now ...
2012-02-28 21:08:18,018 DEBUG  
org.apache.hadoop.hbase.regionserver.HRegion: Instantiated  
staging_dev,,1330462814322.1300b0adf5bfad3a8aa4d88326802171.
2012-02-28 21:08:18,018 ERROR  
org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler: Failed  
open of region=staging_dev,,1330462814322.1300b0adf5bfad3a8aa4d88326802171.
java.io.IOException: Compression algorithm 'snappy' previously failed test.
         at  
org.apache.hadoop.hbase.util.CompressionTest.testCompression(CompressionTes t.java:78)
         at  
org.apache.hadoop.hbase.regionserver.HRegion.checkCompressionCodecs(HRegion .java:3234)
         at  
org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:3223)
         at  
org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:3173)
         at  
org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(O penRegionHandler.java:331)
         at  
org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(Open RegionHandler.java:107)
         at  
org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
         at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886)
         at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 908)
         at java.lang.Thread.run(Thread.java:662)
2012-02-28 21:08:18,018 INFO  
org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler: Opening of  
region {NAME =>  
'staging_dev,,1330462814322.1300b0adf5bfad3a8aa4d88326802171.', STARTKEY  
=> '', ENDKEY => '', ENCODED => 1300b0adf5bfad3a8aa4d88326802171,} failed,  
marking as FAILED_OPEN in ZK
2012-02-28 21:08:18,018 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign:  
regionserver:60020-0x35c5c0fb080003 Attempting to transition node  
1300b0adf5bfad3a8aa4d88326802171 from RS_ZK_REGION_OPENING to  
RS_ZK_REGION_FAILED_OPEN
2012-02-28 21:08:18,054 DEBUG org.apache.hadoop.hbase.zookeeper.ZKAssign:  
regionserver:60020-0x35c5c0fb080003 Successfully transitioned node  
1300b0adf5bfad3a8aa4d88326802171 from RS_ZK_REGION_OPENING to  
RS_ZK_REGION_FAILED_OPEN

I tried setting HBASE_LIBRARY_PATH ( and HBASE_CLASSPATH just in case ) to  
point to the directory containing libsnappy but I am still getting this  
error

What else can I do to fix / diagnose this problem?

Thanks!

~ Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stack  
View profile  
 More options Feb 28 2012, 8:02 pm
From: Stack <st...@duboce.net>
Date: Tue, 28 Feb 2012 17:02:38 -0800
Local: Tues, Feb 28 2012 8:02 pm
Subject: Re: java.io.IOException: Compression algorithm 'snappy' previously failed test

On Tue, Feb 28, 2012 at 1:52 PM, Peter Naudus <pnau...@dataraker.com> wrote:
> What else can I do to fix / diagnose this problem?

Does our little compression tool help?
http://hbase.apache.org/book.html#compression.test

St.Ack


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Naudus  
View profile  
 More options Feb 29 2012, 12:52 pm
From: "Peter Naudus" <pnau...@dataraker.com>
Date: Wed, 29 Feb 2012 12:52:33 -0500
Local: Wed, Feb 29 2012 12:52 pm
Subject: Re: java.io.IOException: Compression algorithm 'snappy' previously failed test
Thanks for your help :)

To make sure I manually set LD_LIBRARY_PATH, LIBRARY_PATH, and  
HBASE_LIBRARY_PATH

bash-3.2$ export  
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/dataraker/software/cdh4/hadoop-0.23.0 -cdh4b1/lib/native
bash-3.2$ export  
LIBRARY_PATH=$LIBRARY_PATH:/opt/dataraker/software/cdh4/hadoop-0.23.0-cdh4b 1/lib/native
bash-3.2$ export  
HBASE_LIBRARY_PATH=/opt/dataraker/software/cdh4/hadoop-0.23.0-cdh4b1/lib/na tive

But running the compression test failed with "native snappy library not  
available"

bash-3.2$ ./hbase org.apache.hadoop.hbase.util.CompressionTest  
file:///tmp/test.txt snappy
log4j:WARN No appenders could be found for logger  
(org.apache.hadoop.conf.Configuration).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for  
more info.
Exception in thread "main" java.lang.RuntimeException: native snappy  
library not available
        at  
org.apache.hadoop.io.compress.SnappyCodec.getCompressorType(SnappyCodec.jav a:121)
        at  
org.apache.hadoop.io.compress.CodecPool.getCompressor(CodecPool.java:104)
        at  
org.apache.hadoop.io.compress.CodecPool.getCompressor(CodecPool.java:118)
        at  
org.apache.hadoop.hbase.io.hfile.Compression$Algorithm.getCompressor(Compre ssion.java:236)
        at  
org.apache.hadoop.hbase.io.hfile.HFileBlock$Writer.<init>(HFileBlock.java:5 88)
        at  
org.apache.hadoop.hbase.io.hfile.HFileWriterV2.finishInit(HFileWriterV2.jav a:178)
        at  
org.apache.hadoop.hbase.io.hfile.HFileWriterV2.<init>(HFileWriterV2.java:15 0)
        at  
org.apache.hadoop.hbase.io.hfile.HFileWriterV2.<init>(HFileWriterV2.java:14 0)
        at  
org.apache.hadoop.hbase.io.hfile.HFileWriterV2$WriterFactoryV2.createWriter (HFileWriterV2.java:104)
        at  
org.apache.hadoop.hbase.util.CompressionTest.doSmokeTest(CompressionTest.ja va:108)
        at  
org.apache.hadoop.hbase.util.CompressionTest.main(CompressionTest.java:137)

I verified that libsnappy is indeed, installed

bash-3.2$ ls -al $HBASE_LIBRARY_PATH
total 1412
drwxr-xr-x 2 1106 592   4096 Feb 11 01:06 .
drwxr-xr-x 3 1106 592   4096 Feb 11 01:06 ..
-rw-r--r-- 1 1106 592 616862 Feb 11 01:06 libhadoop.a
-rwxr-xr-x 1 1106 592   1051 Feb 11 01:06 libhadoop.la
lrwxrwxrwx 1 1106 592     18 Feb 27 18:12 libhadoop.so ->  
libhadoop.so.1.0.0
lrwxrwxrwx 1 1106 592     18 Feb 27 18:12 libhadoop.so.1 ->  
libhadoop.so.1.0.0
-rwxr-xr-x 1 1106 592 340361 Feb 11 01:06 libhadoop.so.1.0.0
-rw-r--r-- 1 1106 592 184418 Feb 11 01:06 libhdfs.a
-rwxr-xr-x 1 1106 592   1034 Feb 11 01:06 libhdfs.la
lrwxrwxrwx 1 1106 592     16 Feb 27 18:12 libhdfs.so -> libhdfs.so.0.0.0
lrwxrwxrwx 1 1106 592     16 Feb 27 18:12 libhdfs.so.0 -> libhdfs.so.0.0.0
-rwxr-xr-x 1 1106 592 125455 Feb 11 01:06 libhdfs.so.0.0.0
-rw-r--r-- 1 1106 592  37392 Feb 11 01:06 libsnappy.a
lrwxrwxrwx 1 1106 592     18 Feb 27 18:12 libsnappy.so ->  
libsnappy.so.1.1.1
lrwxrwxrwx 1 1106 592     18 Feb 27 18:12 libsnappy.so.1 ->  
libsnappy.so.1.1.1
-rw-r--r-- 1 1106 592  26824 Feb 11 01:06 libsnappy.so.1.1.1

Just for grins and giggles I re-ran this as root

In addition to the Exception mentioned above, I also got following Warning:
        WARN util.NativeCodeLoader: Unable to load native-hadoop library for your  
platform... using builtin-java classes where applicable

Any ideas?

On Tue, 28 Feb 2012 20:02:38 -0500, Stack <st...@duboce.net> wrote:
> On Tue, Feb 28, 2012 at 1:52 PM, Peter Naudus <pnau...@dataraker.com>  
> wrote:
>> What else can I do to fix / diagnose this problem?

> Does our little compression tool help?
> http://hbase.apache.org/book.html#compression.test

> St.Ack

--

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »