Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2519

JAVA_HOME not detected correctly for openjdk 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • 1.1.0
    • None
    • hadoop
    • None

    Description

      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 ....

      Attachments

        Activity

          People

            petevg Pete Vander Giessen
            petevg Pete Vander Giessen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: