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 "Gera Shegalov (JIRA)" <ji...@apache.org> on 2012/09/13 11:46:07 UTC

[jira] [Created] (HADOOP-8797) automatically detect JAVA_HOME on Linux, report native lib path similar to class path

Gera Shegalov created HADOOP-8797:
-------------------------------------

             Summary: automatically detect JAVA_HOME on Linux, report native lib path similar to class path
                 Key: HADOOP-8797
                 URL: https://issues.apache.org/jira/browse/HADOOP-8797
             Project: Hadoop Common
          Issue Type: Improvement
         Environment: Linux
            Reporter: Gera Shegalov
            Priority: Trivial


Enhancement 1)
iterate common java locations on Linux starting with Java7 down to Java6

Enhancement 2)
"hadoop jnipath" to print java.library.path similar to "hadoop classpath"


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8797) automatically detect JAVA_HOME on Linux, report native lib path similar to class path

Posted by "Gera Shegalov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456149#comment-13456149 ] 

Gera Shegalov commented on HADOOP-8797:
---------------------------------------

Thanks for the comments. The consensus seems to be -1 for JAVA_HOME detection in the trunk because it is handled in the scope of Bigtop. Any comments regarding the second enhancement: 'hadoop jnipath'.
                
> automatically detect JAVA_HOME on Linux, report native lib path similar to class path
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8797
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8797
>             Project: Hadoop Common
>          Issue Type: Improvement
>         Environment: Linux
>            Reporter: Gera Shegalov
>            Priority: Trivial
>         Attachments: HADOOP-8797.patch
>
>
> Enhancement 1)
> iterate common java locations on Linux starting with Java7 down to Java6
> Enhancement 2)
> "hadoop jnipath" to print java.library.path similar to "hadoop classpath"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8797) automatically detect JAVA_HOME on Linux, report native lib path similar to class path

Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455700#comment-13455700 ] 

Steve Loughran commented on HADOOP-8797:
----------------------------------------

-1

Detecting {{JAVA_HOME}} is notoriously brittle -it's been moved to bigtop to let the RPM- and deb- specific installations deal with in the ways that best suit their platforms, but even they have to struggle to keep up to date (BIGTOP-523). They can release on a faster cycle than Hadoop itself, which means that such problems are fixed faster.

The other reason for bigtop hosting is that is where the functional tests of installation will go, and that's what you need to verify that the JAVA_HOME detection logic goes (and indeed, any of the other Hadoop scripts). 

Gera -we appreciate the work you've done, but you'd be better off checking out Bigtop and seeing if there are things there that you need to fix for your installations. 

(and yes, everyone hates the inconsistent placement of Java versions on Linux, as well as difference between {{JAVA_HOME}} and {{JDK_HOME}}.
                
> automatically detect JAVA_HOME on Linux, report native lib path similar to class path
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8797
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8797
>             Project: Hadoop Common
>          Issue Type: Improvement
>         Environment: Linux
>            Reporter: Gera Shegalov
>            Priority: Trivial
>         Attachments: HADOOP-8797.patch
>
>
> Enhancement 1)
> iterate common java locations on Linux starting with Java7 down to Java6
> Enhancement 2)
> "hadoop jnipath" to print java.library.path similar to "hadoop classpath"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8797) automatically detect JAVA_HOME on Linux, report native lib path similar to class path

Posted by "Allen Wittenauer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455498#comment-13455498 ] 

Allen Wittenauer commented on HADOOP-8797:
------------------------------------------

bq.  iterate common java locations on Linux starting with Java7 down to Java6

FWIW, -1.
                
> automatically detect JAVA_HOME on Linux, report native lib path similar to class path
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8797
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8797
>             Project: Hadoop Common
>          Issue Type: Improvement
>         Environment: Linux
>            Reporter: Gera Shegalov
>            Priority: Trivial
>         Attachments: HADOOP-8797.patch
>
>
> Enhancement 1)
> iterate common java locations on Linux starting with Java7 down to Java6
> Enhancement 2)
> "hadoop jnipath" to print java.library.path similar to "hadoop classpath"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8797) automatically detect JAVA_HOME on Linux, report native lib path similar to class path

Posted by "Gera Shegalov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gera Shegalov updated HADOOP-8797:
----------------------------------

    Attachment: HADOOP-8797.patch

Please review this patch
                
> automatically detect JAVA_HOME on Linux, report native lib path similar to class path
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8797
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8797
>             Project: Hadoop Common
>          Issue Type: Improvement
>         Environment: Linux
>            Reporter: Gera Shegalov
>            Priority: Trivial
>         Attachments: HADOOP-8797.patch
>
>
> Enhancement 1)
> iterate common java locations on Linux starting with Java7 down to Java6
> Enhancement 2)
> "hadoop jnipath" to print java.library.path similar to "hadoop classpath"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira