On Feb 21, 2008, at 3:29 AM, Raghavendra K wrote:

Hi,
I am able to get Hadoop running and also able to compile the libhdfs.
But when I run the hdfs_test program it is giving Segmentation Fault.

Unfortunately the documentation for using libhdfs is sparse, our apologies.

You'll need to set the CLASSPATH to include your hadoop-core.jar and the conf/ directory to run libhdfs since it is a JNI wrapper over the HDFS java api.

Please take a look at the 'test-libhdfs' target in the top-level build.xml for hints on how to set them...

Arun

Just a small program like this
#include "hdfs.h"
int main() {
return(0);
}
and compiled using the command
gcc -ggdb -m32 -I/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/ include -I/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/include/ hdfs_test.c
-L/garl/garl-alpha1/home1/raghu/Desktop/hadoop-0.15.3/libhdfs -lhdfs
-L/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/lib/i386/server -ljvm
-shared -m32 -Wl,-x -o hdfs_test
running hdfs_test gives segmentation fault.
please tell me as to how to fix it.



--
Regards,
Raghavendra K


Reply via email to