Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: CDH3b4
-
Component/s: None
-
Labels:None
Description
In CDH3, the hadoop-fuse-dfs wrapper can sometimes pick up the incorrect libjvm. Look at the following snippet:
if [ "$LD_LIBRARY_PATH" = "" ]
then JVM_LIB=`find ${JAVA_HOME}/jre/lib -name libjvm.so |tail -n 1`
export LD_LIBRARY_PATH=`dirname $JVM_LIB`:/usr/lib/
fi
If both i386 and x86_64 JDK are installed, then this can add the 32-bit libjvm (which causes the mount to fail) instead of the 64-bit one. There's no harm in adding both to the path. The good-ol' dynamic linker will figure that one out.