[ 
https://issues.apache.org/jira/browse/CASSANDRA-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

paul cannon updated CASSANDRA-2785:
-----------------------------------

    Attachment: 0001-use-JAVA-in-cassandra-env.sh.patch.txt

patch 0001: Uses $JAVA in cassandra-env.sh instead of relying on $PATH.

Makes sure that JAVA is appropriately set from bin/cassandra and debian/init.

Changes debian initscript so that /etc/default/cassandra is sourced _before_ 
/etc/cassandra/cassandra-env.sh. I don't know of anyone using 
/etc/default/cassandra in such a way that this would be a problem. The change 
gives users a place to specify their own $JAVA_HOME if they so desire.

> should export JAVA variable in the bin/cassandra and use that in the 
> cassandra-env.sh when check for the java version
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2785
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2785
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jackson Chung
>            Assignee: paul cannon
>         Attachments: 0001-use-JAVA-in-cassandra-env.sh.patch.txt
>
>
> I forgot which jira we add this java -version check in the cassandra-env.sh 
> (for adding jamm to the javaagent), but we should probably use the variable 
> JAVA set in bin/cassandra (will need export) and use $JAVA instead of "java" 
> in the cassandra-env.sh
> In a situation where JAVA_HOME may have been properly set as the Sun's java 
> but the PATH still have the OpenJDK's java in front, the check will fail to 
> add the jamm.jar, even though the cassandra jvm is properly started via the 
> Sun's java.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to