cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Bointon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2647) Cassandra can't find jamm on startup
Date Tue, 24 May 2011 19:20:47 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038740#comment-13038740
] 

Marcus Bointon commented on CASSANDRA-2647:
-------------------------------------------

It was just that this bug's current patch does the opposite. I mentioned earlier that I'd
expect things like CASSANDRA_HOME to be set in /etc/defaults/cassandra rather than somewhere
in /usr.

> 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: Eric Evans
>            Priority: Minor
>             Fix For: 0.8.0
>
>         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

Mime
View raw message