You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Tareq Aljabban <ta...@gmail.com> on 2011/11/28 01:14:21 UTC

Issues Running the HDFS C API

Hi,
I'm trying to run the hdfs_test that comes alongside the C API of HDFS.
So far I tried both versions 0.20.3 and 0.21.0, and I'm getting two
different errors.
In 0.20.3, I'm getting this:

[/$HADOOP_HOME/src/c++/libhdfs] ./hdfs_test
./hdfs_test: symbol lookup error:
/$HADOOP_HOME/build/c++/Linux-i386-32/lib/libhdfs.so.0:  undefined
symbol: JNI_GetCreatedJavaVMs

In 0.21.0, I'm getting:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:153)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 1 more
Can't construct instance of class org.apache.hadoop.conf.Configuration
Oops! Failed to connect to hdfs!


Any help is appreciated..