Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 6396 invoked from network); 24 Aug 2010 20:20:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 20:20:57 -0000 Received: (qmail 78912 invoked by uid 500); 24 Aug 2010 20:20:57 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 78354 invoked by uid 500); 24 Aug 2010 20:20:56 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 78146 invoked by uid 99); 24 Aug 2010 20:20:56 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 20:20:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 20:20:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7OKKHag025223 for ; Tue, 24 Aug 2010 20:20:17 GMT Message-ID: <28038853.538991282681217622.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 16:20:17 -0400 (EDT) From: "Stephen Watt (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6923) Native Libraries do not load if a different platform signature is returned from org.apache.hadoop.util.PlatformName In-Reply-To: <26891645.538181282679417132.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902053#action_12902053 ] Stephen Watt commented on HADOOP-6923: -------------------------------------- Identical Problem, *slightly* different resolutions. HADOOP-6895 is for Hadoop 0.21 where the code has been moved out of the bin/hadoop script into the bin/hadoop-config.sh file, so the 6895 patch modifies the hadoop-config.sh file, whereas this patch (for 0.20.3) modifies the bin/hadoop file. > Native Libraries do not load if a different platform signature is returned from org.apache.hadoop.util.PlatformName > ------------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-6923 > URL: https://issues.apache.org/jira/browse/HADOOP-6923 > Project: Hadoop Common > Issue Type: Bug > Components: native > Affects Versions: 0.20.0, 0.20.1, 0.20.2 > Environment: SLES 10, IBM Java 6, Apache Hadoop 0.20.x > Reporter: Stephen Watt > Fix For: 0.20.3 > > Attachments: HADOOP-6923.patch > > > The bin/hadoop script has an environment variable called JAVA_PLATFORM which is set to to the results returned by org.apache.hadoop.util.PlatformName . These results are sometimes unique to the JRE being used. Although the value returned for 64 Bit Sun/Oracle Java and 64 Bit IBM Java is the same, it is different for the corresponding 32 Bit JREs. > The issue is that the value returned is used in creating the path to the native libraries on disk, i.e ${HADOOP_COMMON_HOME}/lib/native/${JAVA_PLATFORM} > Since the path on disk is fixed with the Sun JRE value /lib/native/Linux-i386-32 it therefore fails when it attempts to load the native libraries with the value returned with 32 Bit IBM Java, /lib/native/Linux-x86-32 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.