We are using Hadoop through the Hadoop C/C++ API (libhdfs.so). We use the latest stable Hadoop version which is 0.20.203. Unfortunately, there are no clear (and up to date) instructions to build libhdfs.so. When I try to build Hadoop with ant, it fails and does not build the libhdfs.so library.
Tried using the following:
ant -Dcompile.c++=true -Dlibhdfs=true compile-c++-libhdfs
It seems to fail at line 1761 of build.xml. At this line there is the following xml:
<exec executable="${c++.libhdfs.src}/configure" dir="${build.c++.libhdfs}"
failonerror="yes">
Does anyone have instructions to build libhdfs.so on Ubuntu 64bit 10.10 ?
I found a solution to my problem. It was failing because the configure had already been executed and I needed to do a “make dist clean” in the “src/c++/libhdfs” directory before building the library. Now it works as expected using: