[Bug 193236] New: cassandra2-2.0.10 does not work

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 2 01:43:43 UTC 2014


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 at FreeBSD.org
          Reporter: toshiro.biz at 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.


More information about the freebsd-ports-bugs mailing list