You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Noah Watkins (JIRA)" <ji...@apache.org> on 2011/01/11 06:55:47 UTC
[jira] Created: (HADOOP-7097) java.library.path missing basedir
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.22.0
Environment: Ubuntu 10.10
Reporter: Noah Watkins
Priority: Blocker
Fix For: 0.22.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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980634#action_12980634 ]
Hudson commented on HADOOP-7097:
--------------------------------
Integrated in Hadoop-Common-22-branch #13 (See [https://hudson.apache.org/hudson/job/Hadoop-Common-22-branch/13/])
HADOOP-7097. JAVA_LIBRARY_PATH missing base directory. Contributed by Noah Watkins.
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983564#action_12983564 ]
Hudson commented on HADOOP-7097:
--------------------------------
Integrated in Hadoop-Common-trunk-Commit #479 (See [https://hudson.apache.org/hudson/job/Hadoop-Common-trunk-Commit/479/])
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Updated: (HADOOP-7097) java.library.path missing basedir
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon updated HADOOP-7097:
--------------------------------
Affects Version/s: (was: 0.23.0)
0.22.0
Fix Version/s: (was: 0.23.0)
0.22.0
Hadoop Flags: [Reviewed]
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Assigned: (HADOOP-7097) java.library.path missing basedir
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon reassigned HADOOP-7097:
-----------------------------------
Assignee: Noah Watkins
> 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
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.23.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980601#action_12980601 ]
Todd Lipcon commented on HADOOP-7097:
-------------------------------------
+1
> 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
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.23.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980591#action_12980591 ]
Hadoop QA commented on HADOOP-7097:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12468111/HADOOP-7097.patch
against trunk revision 1057970.
+1 @author. The patch does not contain any @author tags.
-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no new tests are needed for this patch.
Also please list what manual steps were performed to verify this patch.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed core unit tests.
+1 contrib tests. The patch passed contrib unit tests.
+1 system test framework. The patch passed system test framework compile.
Test results: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/176//testReport/
Findbugs warnings: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/176//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/176//console
This message is automatically generated.
> 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
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980662#action_12980662 ]
Hudson commented on HADOOP-7097:
--------------------------------
Integrated in Hadoop-Common-trunk #574 (See [https://hudson.apache.org/hudson/job/Hadoop-Common-trunk/574/])
HADOOP-7097. JAVA_LIBRARY_PATH missing base directory. Contributed by Noah Watkins.
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Updated: (HADOOP-7097) java.library.path missing basedir
Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Watkins updated HADOOP-7097:
---------------------------------
Attachment: HADOOP-7097.patch
> 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
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Updated: (HADOOP-7097) java.library.path missing basedir
Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Watkins updated HADOOP-7097:
---------------------------------
Affects Version/s: (was: 0.22.0)
0.23.0
Fix Version/s: (was: 0.22.0)
0.23.0
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980578#action_12980578 ]
Todd Lipcon commented on HADOOP-7097:
-------------------------------------
Would you mind uploading this as a patch attachment? JIRA screwed up the formatting a bit.
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Allen Wittenauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980407#action_12980407 ]
Allen Wittenauer commented on HADOOP-7097:
------------------------------------------
Are you actually running it out of the build directory? If so, that's the problem.
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HADOOP-7097) java.library.path missing basedir
Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Watkins updated HADOOP-7097:
---------------------------------
Status: Patch Available (was: Open)
This seems to have fixed the problem I was seeing in the trunk.
> 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
>
> Attachments: HADOOP-7097.patch
>
>
> 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.
[jira] Commented: (HADOOP-7097) java.library.path missing basedir
Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980414#action_12980414 ]
Noah Watkins commented on HADOOP-7097:
--------------------------------------
Yes, I'm running Hadoop from outside the source tree. However, in 0.21 and in trunk this issue doesn't seem to exist.
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.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.
[jira] Updated: (HADOOP-7097) java.library.path missing basedir
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon updated HADOOP-7097:
--------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Committed to 0.22 and trunk. Thanks Noah!
> 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.22.0
> Environment: Ubuntu 10.10
> Reporter: Noah Watkins
> Assignee: Noah Watkins
> Priority: Blocker
> Fix For: 0.22.0
>
> Attachments: HADOOP-7097.patch
>
>
> 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.