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
Message from discussion Problems with block compression using native codecs (Snappy, LZO) and MapFile.Reader.get()
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
 
Jason B  
View profile  
 More options May 21 2012, 6:57 pm
From: Jason B <urg...@gmail.com>
Date: Mon, 21 May 2012 15:57:15 -0700
Local: Mon, May 21 2012 6:57 pm
Subject: Problems with block compression using native codecs (Snappy, LZO) and MapFile.Reader.get()

I am using Cloudera distribution cdh3u1.

When trying to check native codecs for better decompression
performance such as Snappy or LZO, I ran into issues with random
access using MapFile.Reader.get(key, value) method.
First call of MapFile.Reader.get() works but a second call fails.

Also  I am getting different exceptions depending on number of entries
in a map file.
With LzoCodec and 10 record file, jvm gets aborted.

At the same time the DefaultCodec works fine for all cases, as well as
record compression for the native codecs.

I created a simple test program (attached) that creates map files
locally with sizes of 10 and 100 records for three codecs: Default,
Snappy, and LZO.
(The test requires corresponding native library available)

The summary of problems are given below:

Map Size: 100
Compression: RECORD
==================
DefaultCodec:  OK
SnappyCodec: OK
LzoCodec: OK

Map Size: 10
Compression: RECORD
==================
DefaultCodec:  OK
SnappyCodec: OK
LzoCodec: OK

Map Size: 100
Compression: BLOCK
================
DefaultCodec:  OK

SnappyCodec: java.io.EOFException  at
org.apache.hadoop.io.compress.BlockDecompressorStream.getCompressedData(Blo ckDecompressorStream.java:114)

LzoCodec: java.io.EOFException at
org.apache.hadoop.io.compress.BlockDecompressorStream.getCompressedData(Blo ckDecompressorStream.java:114)

Map Size: 10
Compression: BLOCK
==================
DefaultCodec:  OK

SnappyCodec: java.lang.NoClassDefFoundError: Ljava/lang/InternalError
at org.apache.hadoop.io.compress.snappy.SnappyDecompressor.decompressBytesDire ct(Native
Method)

LzoCodec:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002b068ffcbc00, pid=6385, tid=47304763508496
#
# JRE version: 6.0_21-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode linux-amd64 )
# Problematic frame:
# C  [liblzo2.so.2+0x13c00]  lzo1x_decompress+0x1a0
#
# An error report file with more information is saved as:
# /hadoop/user/yurgis/testapp/hs_err_pid6385.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


 
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.