Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2132

Java version parsing is not working for OpenJDK

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.9
    • Component/s: Deployment / Scripts
    • Labels:
      None

      Description

      Reported by Aljoscha Krettek:

      /home/flink/flink-bin/bin/../bin/jobmanager.sh: line 32: [: openjdk
      version "1.8.0_40-internal": integer expression expected
      

      On Ubuntu 14.10 with openjdk 8.

      The script expects a String of format

      java version "1.8.0_20"
      Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
      

      but the openjdk string looks as follows

      openjdk version "1.8.0_40-internal"
      OpenJDK Runtime Environment (build 1.8.0_40-internal-b09)
      OpenJDK 64-Bit Server VM (build 25.40-b13, mixed mode)
      

        Attachments

          Activity

            People

            • Assignee:
              uce Ufuk Celebi
              Reporter:
              uce Ufuk Celebi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: