On Oct 10, 2008, at 12:51 AM, Songting Chen wrote:

Thanks Arun.

Still sort of confused.

If I don't need to rebuild the library, after lzo is installed, it's still not working.


Could you please elaborate? What is the error/exception?

Arun

My code:                

writer = SequenceFile.createWriter(fileSys, jobConf,
                file, LongWritable.class, BytesWritable.class,
                SequenceFile.CompressionType.BLOCK, new LzoCodec());

Rebuilding the library gave some weird error too.


--- On Fri, 10/10/08, Arun C Murthy <[EMAIL PROTECTED]> wrote:

From: Arun C Murthy <[EMAIL PROTECTED]>
Subject: Re: How to make LZO work?
To: core-user@hadoop.apache.org
Date: Friday, October 10, 2008, 12:40 AM
On Oct 9, 2008, at 6:46 PM, Songting Chen wrote:

Thanks, Arun.

Does that mean I have to rebuild the native library?


No, hadoop releases come bundled with pre-built 32/64 bit
libhadoop.so
for Linux...

Arun

Also, the LZO installation puts liblzo2.a and
liblzo2.la under /usr/
local/lib. There is no liblzo2.so there. Do I need to
rename them to
liblzo2.so somehow?


--- On Thu, 10/9/08, Arun C Murthy
<[EMAIL PROTECTED]> wrote:

From: Arun C Murthy <[EMAIL PROTECTED]>
Subject: Re: How to make LZO work?
To: core-user@hadoop.apache.org
Date: Thursday, October 9, 2008, 6:35 PM
On Oct 9, 2008, at 5:58 PM, Songting Chen wrote:

Hi,
I have installed lzo-2.03 to my Linux box.
But still my code for writing a SequenceFile
using
LZOcodec returns
the following error:

util.NativeCodeLoader: Loaded the
native-hadoop
library
java.lang.UnsatisfiedLinkError: Cannot load
liblzo2.so!

What needs to be done to make this work?



http://hadoop.apache.org/core/docs/current/native_libraries.html

Arun

Reply via email to