Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # dev >> libhdfs not getting compiled

Copy link to this message
Re: libhdfs not getting compiled
Hi Aastha,

Try using "ldd" against the fuse_dfs executable, and see where you are pulling libhdfs.so from.  It may be it is linking from the "wrong one".


On Mar 17, 2011, at 3:24 PM, Aastha Mehta wrote:

> Hello,
> I am working on a project involving hdfs and fuse-dfs API on top of it. I
> wanted to trace through the functions called from libhdfs API by fuse-dfs
> functions. I added print statements inside the hdfs.c file in appropriate
> places to see how the functions progress. I execute ant compile-c++-libhdfs
> -Dlibhdfs=1 and then ant compile-contrib -Dlibhdfs=1 -Dfusedfs=1
> -Djava5.home=/usr/lib/jvm/java-1.5.0-sun. However, when I use fuse-dfs I
> cannot see any of the print statements executed from libhdfs/hdfs.c.
> I am using hadoop-0.20.2 version and the libhdfs is present in
> hadoop-0.20.2/src/c++/libhdfs. Could someone tell me if this libhdfs is the
> one compiled and used or if there will be some other libhdfs that is
> accessed. If this is the one, then why are the changes made in its files
> reflected on running the code?
> Thanks,
> Aastha.
> --
> Aastha Mehta
> Intern, NetApp, Bangalore
> 4th year undergraduate, BITS Pilani