You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Nikolaos Hatzopoulos <nh...@gmail.com> on 2012/01/14 02:48:49 UTC

HADOOP Mounting HDFS

After a lot of search if someone want's to compile hadoop with libhdfs
this script should work

#!/bin/bash
export JAVA_HOME=/yourdir/jdk-1.6
export CFLAGS=-m64
export CXXFLAGS=-m64
ant \
-Dforrest.home=/home/arion/forrest/apache-forrest-0.9 \
-Djava5.home=/home/arion/java/jdk1.5.0_22 \
-Dfindbugs.home=/home/arion/findbugs/findbugs-2.0.0 \
-Dversion=20.206.0 \
-Dhadoop.version=20.206.0 \
-Dcompile.native=true \
-Dcompile.c++=true \
-Dlibhdfs=true \
-Dlibrecordio=true \
compile-core-native compile-c++ compile-c++-libhdfs

please update the wiki page
http://wiki.apache.org/hadoop/MountableHDFS


--Nikos Hatzopoulos

Re: HADOOP Mounting HDFS

Posted by Roman Shaposhnik <rv...@apache.org>.
On Fri, Jan 13, 2012 at 5:48 PM, Nikolaos Hatzopoulos <nh...@gmail.com> wrote:
> After a lot of search if someone want's to compile hadoop with libhdfs
> this script should work

FYI: in general, Bigtop is pretty good at tracking how to build all of
the projects it packages in the most complete way possible. The build
scripts for all the projects are here:
   https://svn.apache.org/repos/asf/incubator/bigtop/<branch>/bigtop-packages/src/common/<project>/do-component-build

E.g.
   https://svn.apache.org/repos/asf/incubator/bigtop/branches/hadoop-0.22/bigtop-packages/src/common/hadoop/do-component-build
   https://svn.apache.org/repos/asf/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/common/hadoop/do-component-build
   https://svn.apache.org/repos/asf/incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build

Thanks,
Roman.