Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12793

invalid jvm type and architecture [cassandra-env.sh]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.11.3, 4.0-alpha1, 4.0
    • Local/Config
    • None
    • ubuntu 16.04, openjdk 1.8.0_91

    • Low

    Description

      In cassandra-env.sh the part that determines the type of JVM we'll be running on doesn't provide the right answer for openjdk 1.8.0_91.

      value of java_ver_output is "openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)", yet the command looks for "java version" (jvm=`echo "$java_ver_output" | grep -A 1 'java version' ...) which does not exist.

      I guess it should be replaced with jvm=`echo "$java_ver_output" | grep -A 1 '[openjdk|java] version' | awk 'NR==2

      {print $1}

      '`

      Attachments

        1. 12793.patch
          0.8 kB
          Stefan Podkowinski

        Activity

          People

            spod Stefan Podkowinski
            ApAdAnA Ali Ebrahiminejad
            Stefan Podkowinski
            Michael Semb Wever
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: