[
https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980573#action_12980573
]
Noah Watkins commented on HADOOP-7097:
--------------------------------------
I tracked down the problem in the trunk. It comes down to an old usage of
HADOOP_CORE_HOME vs HADOOP_COMMON_HOME. That seems to fix it, and
HADOOP_CORE_HOME isn't returned by any grep, so, is it special?
diff --git a/bin/hadoop-config.sh b/bin/hadoop-config.sh
index ee7b55c..4da14f8 100644
--- a/bin/hadoop-config.sh
+++ b/bin/hadoop-config.sh
@@ -192,9 +192,9 @@ if [ -d "${HADOOP_COMMON_HOME}/build/native" -o -d
"${HADOOP_COMMON_HOME}/lib/na
if [ -d "$HADOOP_COMMON_HOME/build/native" ]; then
if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
-
JAVA_LIBRARY_PATH=${JAVA_LIBRARY_PATH}:${HADOOP_CORE_HOME}/build/native/${JAVA_PLATFORM}/lib
+
JAVA_LIBRARY_PATH=${JAVA_LIBRARY_PATH}:${HADOOP_COMMON_HOME}/build/native/${JAVA_PLATFORM}/lib
else
- JAVA_LIBRARY_PATH=${HADOOP_CORE_HOME}/build/native/${JAVA_PLATFORM}/lib
+
JAVA_LIBRARY_PATH=${HADOOP_COMMON_HOME}/build/native/${JAVA_PLATFORM}/lib
fi
fi
> java.library.path missing basedir
> ---------------------------------
>
> Key: HADOOP-7097
> URL: https://issues.apache.org/jira/browse/HADOOP-7097
> Project: Hadoop Common
> Issue Type: Bug
> Components: build, native
> Affects Versions: 0.23.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Priority: Blocker
> Fix For: 0.23.0
>
>
> My Hadoop installation is having trouble loading the native code library. It
> appears from the log below that java.library.path is missing the basedir in
> its path. The libraries are built, and present in the directory shown below
> (relative to hadoop-common directory). Instead of seeing:
> /build/native/Linux-amd64-64/lib
> I would expect to see:
> /path/to/hadoop-common/build/native/Linux-amd64-64/lib
> I'm working in branch-0.22.
> 2011-01-10 17:09:27,695 DEBUG org.apache.hadoop.util.NativeCodeLoader: Failed
> to load native-hadoop with error: java.lang.UnsatisfiedLinkError: no hadoop
> in java.library.path
> 2011-01-10 17:09:27,695 DEBUG org.apache.hadoop.util.NativeCodeLoader:
> java.library.path=/build/native/Linux-amd64-64/lib
> 2011-01-10 17:09:27,695 WARN org.apache.hadoop.util.NativeCodeLoader: Unable
> to load native-hadoop library for your platform... using builtin-java classes
> where applicable
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.