This tutorial will assume that you are running a linux machine as Cassandra is not meant to be used in production on windows machines and I have no idea how to install or run it on a mac.
Remove openJDK from your machine and replace it with sun-jdk
Next we have to install the sun jdk-6, but first this step will require install python software properties
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
Next step is to install java from the newly added repository
There we go! now we have replaced the openjdk with the stable sun java6 jdk
We will have to add the following sources to our sources.list file
deb http://www.apache.org/dist/cassandra/debian 10x main
deb-src http://www.apache.org/dist/cassandra/debian 10x main
just open up /etc/apt/sources.list and add them in there anywhere. save the file, and use
Configure cassandra before trying to run.
open up the file /etc/cassandra/cassandra.yaml and look for the section that says “listen_address” and the part that says “rpc_address”
Change both of these to the local address of your machine. (mine is 192.168.2.3)
open up the file /etc/cassandra/cassandra-env.sh
Look for the part that says JXM_PORT and keep in mind that this is where you will change the jxm port if there is some kind of jxm port conflict.
Start up cassandra!