Installation

andrewswan edited this page Jul 8, 2012 · 12 revisions

Cassandra triggers uses AOP to capture activities within the Cassandra server. To install the trigger mechanism, perform the following two steps:

Copy two jars file into $CASSANDRA_HOME/lib.

cd $CASSANDRA_HOME/lib
wget https://oss.sonatype.org/content/repositories/releases/com/hmsonline/hms-cassandra-triggers/1.0.1/hms-cassandra-triggers-1.0.1.jar
wget https://oss.sonatype.org/content/repositories/releases/org/aspectj/aspectjweaver/1.6.11/aspectjweaver-1.6.11.jar`

Edit your cassandra-env.sh file to enable the weaving.

Navigate to the section setting the JVM_OPTS and add the following line:

JVM_OPTS="$JVM_OPTS -javaagent:$CASSANDRA_HOME/lib/aspectjweaver-1.6.11.jar"

If everything went well, you should see the following when Cassandra starts up:

bone@zen:~/servers/apache-cassandra-1.0.7-> bin/cassandra -f
[AppClassLoader@1ef6a746] info AspectJ Weaver Version 1.6.11 built on Tuesday Mar 15, 2011 at 15:31:04 GMT
[AppClassLoader@1ef6a746] info register classloader sun.misc.Launcher$AppClassLoader@1ef6a746
[AppClassLoader@1ef6a746] info using configuration file:/Users/bone/tools/apache-cassandra-1.1.2/lib/hms-cassandra-triggers-1.0.1.jar!/META-INF/aop.xml

Proceed to the Getting Started page.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.