Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Sep 2014 01:43:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193236] New: cassandra2-2.0.10 does not work
Message-ID:  <bug-193236-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193236

            Bug ID: 193236
           Summary: cassandra2-2.0.10 does not work
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: toshiro.biz@gmail.com

when installing cassandra2, it uses openjdk 7; it installs correctly but does
not work at all!

The problem is /usr/local/share/cassandra/conf/cassandra-env.sh, in particular,
this part of the code:

jvmver=`echo "$java_ver_output" | grep 'java version' | awk -F'"' 'NR==1 {print
$2}'`
JVM_VERSION=${jvmver%_*}
JVM_PATCH_VERSION=${jvmver#*_}

if [ "$JVM_VERSION" \< "1.7" ] ; then
    echo "Cassandra 2.0 and later require Java 7 or later."
    exit 1;
fi


$JVM_VERSION never gets the JVM version, here's the relevant part of 

sh -x cassandra.env.sh:


+ java -version
+ java_ver_output='openjdk version "1.7.0_65"
OpenJDK Runtime Environment (build 1.7.0_65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)'
+ echo 'openjdk version "1.7.0_65"
OpenJDK Runtime Environment (build 1.7.0_65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)'
+ grep 'java version'
+ awk '-F"' 'NR==1 {print $2}'
+ jvmver=''
+ JVM_VERSION=''
+ JVM_PATCH_VERSION=''
+ [ '' '<' 1.7 ]
+ echo 'Cassandra 2.0 and later require Java 7 or later.'
Cassandra 2.0 and later require Java 7 or later.
+ exit 1

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193236-13>