[
https://issues.apache.org/jira/browse/CASSANDRA-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034218#comment-13034218
]
Joe Travaglini commented on CASSANDRA-2647:
-------------------------------------------
Forgive the awfully dumb question - I am a new user trying to get Cassandra
running (for the first time) and ran into this issue as well.
What's the preferred method for applying this patch to the code base? Running
Natty x86_64 server.
Thanks in advance.
> Cassandra can't find jamm on startup
> ------------------------------------
>
> Key: CASSANDRA-2647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2647
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 0.8 beta 1
> Environment: Ubuntu 10.04 Lucid
> Reporter: Marcus Bointon
> Assignee: paul cannon
> Priority: Minor
> Fix For: 0.8.1
>
> Attachments:
> v1-0001-CASSANDRA-2647-move-jars-under-lib-to-satisfy-hard-cod.txt
>
>
> I installed the Debian package (from
> http://www.apache.org/dist/cassandra/debian unstable) of Cassandra 0.8beta2
> on Ubuntu 10.04 with the sun jdk over a working copy of 0.7.2. It broke on
> restart.
> On startup it gives this:
> {code}
> Error occurred during initialization of VM
> agent library failed to init: instrument
> Error opening zip file or JAR manifest missing : /lib/jamm-0.2.2.jar
> {code}
> /etc/cassandra/cassandra-env.sh contains this:
> {code}
> # add the jamm javaagent
> check_openjdk=$(java -version 2>&1 | awk '{if (NR == 2) {print $1}}')
> if [ "$check_openjdk" != "OpenJDK" ]
> then
> JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/jamm-0.2.2.jar"
> fi
> {code}
> By default, CASSANDRA_HOME is not set, so it's looking in /lib for this jar.
> It seems CASSANDRA_HOME should be set to /usr/share/cassandra, since that's
> where jamm-0.2.2.jar is installed, but that means the path is still wrong.
> I set CASSANDRA_HOME to /usr/share/cassandra and changed the JVM_OPTS line to
> this:
> {code}
> JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/jamm-0.2.2.jar"
> {code}
> and then cassandra started ok.
> Is this a bug or did I miss something?
> I also noticed that this line appears to be the only use of CASSANDRA_HOME.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira