Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.
The following page has been changed by Arun C Murthy: http://wiki.apache.org/lucene-hadoop/NativeHadoop ------------------------------------------------------------------------------ It is fairly simple to use the native-hadoop libraries: * Take a look at the [#Platforms supported platforms] - * Either [http://www.apache.org/dyn/closer.cgi/lucene/hadoop/ download] the prebuilt 32-bit Linux native-hadoop libraries (available as part of hadoop distribution in lib/native) or [#BuildNativeHadoop build] them yourself. + * Either [http://www.apache.org/dyn/closer.cgi/lucene/hadoop/ download] the prebuilt '''32-bit i386-Linux''' native-hadoop libraries (available as part of hadoop distribution in ''lib/native'') or [#BuildNativeHadoop build] them yourself. * Ensure you have either or/both of '''>zlib-1.2''' and '''>lzo2.0''' packages for your platform installed; depending on your needs. That's it! @@ -58, +58 @@ * [http://www.zlib.net/ zlib-development package] (stable version >= 1.2.0) * [http://www.oberhumer.com/opensource/lzo/ lzo-development package] (stable version >= 2.0) + Once you have the pre-requisites use the standard ''build.xml'' and pass along the '''compile.native''' flag (set to '''true''') to build the native-hadoop library (not built by default): + [[BR]] + {{{$ ant -Dcompile.native=true <target> + }}} + + That's it! You should see the newly-built native-hadoop library in: + [[BR]] + {{{$ build/native/<platform>/lib + }}} + where <platform> is combination of the system-properties: ''{os.name}-{os.arch}-{sun.arch.data.model}''; for e.g. ''Linux-i386-32'' + '''Notes''': * It is '''mandatory''' to have both the zlib and lzo development packages on the target platform for ''building'' the native-hadoop library; however for deployment it is sufficient to have install zlib ''or'' lzo if you wish to use only one of them. * It is necessary to have the correct 32/64 libraries of both zlib/lzo depending on the 32/64 bit jvm for the target platform for building/deployment of the native-hadoop library.