-Re: libhdfs not getting compiled
Brian Bockelman 2011-03-17, 21:38
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:
> 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?
> Aastha Mehta
> Intern, NetApp, Bangalore
> 4th year undergraduate, BITS Pilani
> E-mail: [EMAIL PROTECTED]