Thanks. After alot of experimenting (and ofcourse, right before you sent
this reply) i figured it out. I also had to include the path to libhdfs.so
in my ld.so.conf and update it before i was able to succesfully compile
fuse_dfs. However when i try to mount the HDFS, it fails. I have tried both
the wrapper script and the single binary. Both display the following error:

fuse-dfs didn't recognize /mnt/hadoop,-2
fuse-dfs ignoring option -d

regards,

Sebastian

On Wed, Aug 6, 2008 at 5:29 PM, Pete Wyckoff <[EMAIL PROTECTED]> wrote:

>
> Sorry - I see the problem now: should be:
>
> Ant compile-contrib -Dlibhdfs=1 -Dfusedfs=1
>
> Compile-contrib depends on compile-libhdfs which also requires the
> -Dlibhdfs=1 property to be set.
>
> pete
>
>
> On 8/6/08 5:04 AM, "Sebastian Vieira" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I have installed Hadoop on 20 nodes (data storage) and one master
> (namenode)
> > to which i want to add data. I have learned that this is possible through
> a
> > Java API or via the Hadoop shell. However, i would like to mount the HDFS
> > using FUSE and i discovered that there's a contrib/fuse-dfs within the
> > Hadoop tar.gz package. Now i read the README file and noticed that i was
> > unable to compile using this command:
> >
> > ant compile-contrib -Dcompile.c++=1 -Dfusedfs=1
> >
> > If i change the line to:
> >
> > ant compile-contrib -Dcompile.c++=1 -Dlibhdfs-fuse=1
> >
> > It goes a little bit further. It will now start the configure script, but
> > still fails. I've tried alot of different things but i'm unable to
> compile
> > fuse-dfs. This is a piece of the error i get from ant:
> >
> > compile:
> >      [echo] contrib: fuse-dfs
> > -snip-
> >      [exec] Making all in src
> >      [exec] make[1]: Entering directory
> > `/usr/local/src/hadoop-core-trunk/src/contrib/fuse-dfs/src'
> >      [exec] gcc  -Wall -O3
> -L/usr/local/src/hadoop-core-trunk/build/libhdfs
> > -lhdfs -L/usr/lib -lfuse -L/usr/java/jdk1.6.0_07/jre/lib/i386/server
> -ljvm
> > -o fuse_dfs  fuse_dfs.o
> >      [exec] /usr/bin/ld: cannot find -lhdfs
> >      [exec] collect2: ld returned 1 exit status
> >      [exec] make[1]: *** [fuse_dfs] Error 1
> >      [exec] make[1]: Leaving directory
> > `/usr/local/src/hadoop-core-trunk/src/contrib/fuse-dfs/src'
> >      [exec] make: *** [all-recursive] Error 1
> >
> > BUILD FAILED
> > /usr/local/src/hadoop-core-trunk/build.xml:413: The following error
> occurred
> > while executing this line:
> > /usr/local/src/hadoop-core-trunk/src/contrib/build.xml:30: The following
> > error occurred while executing this line:
> > /usr/local/src/hadoop-core-trunk/src/contrib/fuse-dfs/build.xml:40: exec
> > returned: 2
> >
> >
> > Could somebody shed some light on this?
> >
> >
> > thanks,
> >
> > Sebastian.
>
>

Reply via email to