There are 2 distinctive native components to hadoop: a) libhdfs - Jni based C bindings for the hadoop DFS java libraries. b) libhadoop - Native libraries for core-hadoop (for now we have lzo and zlib compression libraries: http://wiki.apache.org/lucene-hadoop/NativeHadoop as Doug pointed out).
On Fri, Jun 08, 2007 at 04:14:04PM -0700, Phantom wrote: >I am running into this wierd build problem - I am building this on Fedora >Linux x86 64 bit machine but the build is spitting out AMD64 library. How >can I fix this ? Here is the error from the build : > Looking at the errors below 2 data-points: > [exec] /bin/sh ../../../../../../../libtool --tag=CC --mode=link gcc -g >-Wall -fPIC -O2 -m64 -g -O2 -L/usr/local/jdk1.5.0_07/jre/lib/amd64/server >-o libnativezlib.la ZlibCompressor.lo ZlibDecompressor.lo -ldl -ljvm -ljvm and > [exec] Making all in src/org/apache/hadoop/io/compress/lzo > [exec] make[2]: Entering directory `/home/alakshman/FB-Projects/hadoop- >0.13.0/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/lzo' (emphasis on -L/usr/local/jdk1.5.0_07/jre/lib/amd64/server and 0.13.0/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/lzo) lead me to suspect that you have a amd64 build of the jvm installed... could you run org.apache.hadoop.util.PlatformName and check? Also double check the 'JAVA_HOME' env. variable... Arun > >BUILD FAILED >/home/alakshman/FB-Projects/hadoop-0.13.0/build.xml:285: exec returned: 2 > > >On 6/8/07, Doug Cutting <[EMAIL PROTECTED]> wrote: >> >>Phantom wrote: >>> What are minimal requirements on my Linux machine for building libhdfs ? >>On >>> my Linux box I do not seem to have jni.h and what are the other binaries >>I >>> need for this to work ? Could someone please tell me what is the easiest >>> way >>> to get this done ? >> >>The following wiki page should help: >> >>http://wiki.apache.org/lucene-hadoop/NativeHadoop >> >>Doug >>
