You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chris Kistner (JIRA)" <ji...@apache.org> on 2016/12/14 00:20:59 UTC
[jira] [Comment Edited] (CASSANDRA-12793) invalid jvm type and
architecture [cassandra-env.sh]
[ https://issues.apache.org/jira/browse/CASSANDRA-12793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15746339#comment-15746339 ]
Chris Kistner edited comment on CASSANDRA-12793 at 12/14/16 12:20 AM:
----------------------------------------------------------------------
[~ApAdAnA], we're running the same Java version on CentOS 7, but with the [Cassandra 3.7 from the binary tar file|http://archive.apache.org/dist/cassandra/3.7/], and in that version the cassandra-env.sh seems to be correct:
{code}
java_ver_output=`"${JAVA:-java}" -version 2>&1`
jvmver=`echo "$java_ver_output" | grep '[openjdk|java] version' | awk -F'"' 'NR==1 {print $2}' | cut -d\- -f1`
JVM_VERSION=${jvmver%_*}
JVM_PATCH_VERSION=${jvmver#*_}
{code}
So I suppose you installed Cassandra 3.7 via apt?
was (Author: padakwaak):
[~ApAdAnA], we're running the same Java version on CentOS 7, but with the [Cassandra 3.7 from the binary tar file|http://archive.apache.org/dist/cassandra/3.7/], and in that version the cassandra-env.sh seems to be correct:
{code}
java_ver_output=`"${JAVA:-java}" -version 2>&1`
jvmver=`echo "$java_ver_output" | grep '[openjdk|java] version' | awk -F'"' 'NR==1 {print $2}'`
JVM_VERSION=${jvmver%_*}
JVM_PATCH_VERSION=${jvmver#*_}
{code}
So I suppose you installed Cassandra 3.7 via apt?
> invalid jvm type and architecture [cassandra-env.sh]
> ----------------------------------------------------
>
> Key: CASSANDRA-12793
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12793
> Project: Cassandra
> Issue Type: Bug
> Components: Configuration
> Environment: ubuntu 16.04, openjdk 1.8.0_91
> Reporter: Ali Ebrahiminejad
> Priority: Minor
> Fix For: 3.7
>
>
> 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}'`
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)