Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6491

JAVA_PLATFORM in hadoop shell script lacks HADOOP_OPTS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.20.0, 0.20.1
    • None
    • None
    • None

    Description

      It appears to be expected behavior to be able to set the bitness in HADOOP_OPTS as well as other java executable options. However these options are not passed onto the JAVA_PLATFORM test used to configure the java.library.path at run time:

      JAVA_PLATFORM=`CLASSPATH=${CLASSPATH} ${JAVA} -Xmx32m org.apache.hadoop.util.PlatformName | sed -e "s/ /_/g"`

      If a user passes "-d64" to force 64-bit (at least on Solaris), this option is not sent to this code. Instead of returning "SunOS-amd64-64" as expected for 64-bit, it still returns "SunOS-x86-32" for 32-bit. Thus causing native compression to fail.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aw Allen Wittenauer
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: