You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2017/03/18 23:59:41 UTC

[jira] [Commented] (BIGTOP-2519) JAVA_HOME not detected correctly for openjdk 8

    [ https://issues.apache.org/jira/browse/BIGTOP-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931492#comment-15931492 ] 

Konstantin Boudnik commented on BIGTOP-2519:
--------------------------------------------

[~petevg], any chance you have a patch for this we can include to 1.2? Thanks!

> JAVA_HOME not detected correctly for openjdk 8
> ----------------------------------------------
>
>                 Key: BIGTOP-2519
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-2519
>             Project: Bigtop
>          Issue Type: Bug
>          Components: hadoop
>    Affects Versions: 1.1.0
>            Reporter: Pete Vander Giessen
>            Assignee: Pete Vander Giessen
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> I'm running into an issue where the hadoop namenode fails to start hdfs when using openjdk 8. It appears to be because the namenode scripts rely on the bigtop-detect-javahome script in bigtop_utils, which doesn't detect JAVA_HOME correctly for openjdk 8.
> I'd like to modify the script so that it first tries to figure out java home by looking in /etc/alternatives and deriving JAVA_HOME from the symlink to the java executable. This should work on both Redhat and Debian based distros, in a forwards compatible way. The script would fall back to the more manual process for distros that don't use /etc/alternatives.
> Will submit a patch soon ....



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)