Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 18495 invoked from network); 2 Aug 2010 20:08:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Aug 2010 20:08:46 -0000 Received: (qmail 53189 invoked by uid 500); 2 Aug 2010 20:08:46 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 53119 invoked by uid 500); 2 Aug 2010 20:08:46 -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 53111 invoked by uid 99); 2 Aug 2010 20:08:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 20:08:45 +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; Mon, 02 Aug 2010 20:08:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o72K8PXH005032 for ; Mon, 2 Aug 2010 20:08:25 GMT Message-ID: <3258677.124151280779705368.JavaMail.jira@thor> Date: Mon, 2 Aug 2010 16:08:25 -0400 (EDT) From: "Stephen Watt (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6895) Native Libraries do not load if a different platform signature is returned from org.apache.hadoop.util.PlatformName In-Reply-To: <8210696.123741280779279985.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-6895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephen Watt updated HADOOP-6895: --------------------------------- Attachment: HADOOP-6895.patch > Native Libraries do not load if a different platform signature is returned from org.apache.hadoop.util.PlatformName > ------------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-6895 > URL: https://issues.apache.org/jira/browse/HADOOP-6895 > Project: Hadoop Common > Issue Type: Bug > Components: native > Environment: SLES 10, IBM Java 6, Hadoop 0.21.0-rc0 > Reporter: Stephen Watt > Priority: Minor > Fix For: 0.21.0, 0.22.0 > > Attachments: HADOOP-6895.patch > > Original Estimate: 0h > Remaining Estimate: 0h > > bin/hadoop-config.sh 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.