hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadoop <had...@wangzw.org>
Subject Re:Issues Running the HDFS C API
Date Mon, 28 Nov 2011 02:05:07 GMT
HiYou got "undefined symbol:  JNI_GetCreatedJavaVMs" error since the libhdfs could not find
libjvm.so at run-time.you should export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:$LD_LIBRARY_PATH.
And you got "java.lang.NoClassDefFoundError" exception since you did not set CLASSPATH correctly.
 ----- Original Message -----From: Tareq Aljabban <tareq.aljabban@gmail.com>
To: hdfs-dev@hadoop.apache.org

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:
at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:153)
Caused by: java.lang.ClassNotFoundException:
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..
  • Unnamed multipart/alternative (inline, Base64, 0 bytes)
View raw message