Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4184

Jenkins builds for Centos fail with missing 'which' utility and incorrect 'java.home'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.27.0
    • None
    • centos 7

    • Mesosphere Sprint 24
    • 3

    Description

      Jenkins builds are now consistently failing for centos 7, withe the failure:

      checking value of Java system property 'java.home'...
      /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64/jre
      configure: error: could not guess JAVA_HOME

      They also fail early on during 'bootstrap' with a missing 'which' command.

      The solution is to update support/docker_build.sh to install 'which' as well as make sure the proper versions of java are installed during the installation process.

      The problem here is that we install maven BEFORE installing java-1.7.0-openjdk-devel, causing maven to pull in a dependency on java-1.8.0-openjdk. This causes problems with finding the proper java.home in our mesos/configure script because of the mismatch between the most up to date jre (1.8.0) and the most up to date development tools (1.7.0). We can either update the script to pull in the 1.8 devel tools or move our dependence on maven until AFTER our installation of java-1.7.0-openjdk-devel. Unclear what the best solution is.

      Attachments

        Activity

          People

            klueska Kevin Klues
            klueska Kevin Klues
            Joris Van Remoortere Joris Van Remoortere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: