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 "Stephen Watt (JIRA)" <ji...@apache.org> on 2010/08/24 21:50:17 UTC
[jira] Created: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
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.2, 0.20.1, 0.20.0
Environment: SLES 10, IBM Java 6, Apache Hadoop 0.20.x
Reporter: Stephen Watt
Fix For: 0.20.3
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.
[jira] Commented: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Stephen Watt (JIRA)" <ji...@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.
[jira] Commented: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909629#action_12909629 ]
Hadoop QA commented on HADOOP-6923:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12452966/HADOOP-6923.patch
against trunk revision 995285.
+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 patch. The patch command could not apply the patch.
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/679/console
This message is automatically generated.
> 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.
[jira] Updated: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Watt updated HADOOP-6923:
---------------------------------
Status: Patch Available (was: Open)
> 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.2, 0.20.1, 0.20.0
> 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.
[jira] Commented: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Greg Roelofs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902052#action_12902052 ]
Greg Roelofs commented on HADOOP-6923:
--------------------------------------
Other than the reported version numbers, isn't this identical to HADOOP-6895?
> 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.
[jira] Updated: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Watt updated HADOOP-6923:
---------------------------------
Status: Open (was: Patch Available)
Hudson doesn't seem to have kicked off a QA Build. Cancelling Patch and moving it back to Patch Available to see if that will start the Build and Test.
> 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.2, 0.20.1, 0.20.0
> 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.
[jira] Commented: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Greg Roelofs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902089#action_12902089 ]
Greg Roelofs commented on HADOOP-6923:
--------------------------------------
Gotcha, thanks. Might be good to link the two issues, though.
> 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.
[jira] Commented: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928482#action_12928482 ]
Hadoop QA commented on HADOOP-6923:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12452966/HADOOP-6923.patch
against trunk revision 1031422.
+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 patch. The patch command could not apply the patch.
Console output: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/22//console
This message is automatically generated.
> 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.
[jira] Updated: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Watt updated HADOOP-6923:
---------------------------------
Attachment: HADOOP-6923.patch
Since the native libraries work regardless of JRE signature, the patches checks for the IBM 32 bit JRE signature and if found sets the JAVA_PLATFORM environment variable to the same signature of the Oracle/Sun JRE
> 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.
[jira] Updated: (HADOOP-6923) Native Libraries do not load if a
different platform signature is returned from
org.apache.hadoop.util.PlatformName
Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Watt updated HADOOP-6923:
---------------------------------
Status: Patch Available (was: Open)
> 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.2, 0.20.1, 0.20.0
> 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.