You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2014/05/02 01:38:17 UTC
[jira] [Created] (CASSANDRA-7137) Check for Java >= 1.7 in
bin/cassandra
Tyler Hobbs created CASSANDRA-7137:
--------------------------------------
Summary: Check for Java >= 1.7 in bin/cassandra
Key: CASSANDRA-7137
URL: https://issues.apache.org/jira/browse/CASSANDRA-7137
Project: Cassandra
Issue Type: Improvement
Components: Core
Reporter: Tyler Hobbs
Priority: Minor
Fix For: 2.0.8
Since we don't currently check for a Java version >= 1.7 but use flags that were introduced in 1.7, you can get cryptic error messages when starting Cassandra with 1.6. For example:
{noformat}
~/cassandra $ JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26/ bin/cassandra -f
Unrecognized VM option 'StringTableSize=1000003'
Could not create the Java virtual machine.
{noformat}
We had some code in 1.2 to detect the java version and change flags depending on that, so that would be a good starting point: https://github.com/apache/cassandra/blob/cassandra-1.2/conf/cassandra-env.sh#L209
--
This message was sent by Atlassian JIRA
(v6.2#6252)