#Install Debian
#Install Java
#Install JNA
apt-get install libjna-java
#Install Cassandra
sh -c 'echo deb http://www.apache.org/dist/cassandra/debian 12x main >> /etc/apt/sources.list.d/cassandra-stable.list'
sh -c 'echo deb-src http://www.apache.org/dist/cassandra/debian 12x main >> /etc/apt/sources.list.d/cassandra-stable.list'
#Add GPG Keys
gpg --keyserver pgp.mit.edu --recv-keys 4BD736A82B5C1B00
gpg --export --armor 4BD736A82B5C1B00 | sudo apt-key add -
gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
gpg --export --armor 2B5C1B00 | sudo apt-key add -
sudo apt-get update
sudo apt-get install cassandra
#Configure Cassandra
/etc/cassandra
#Configure defaults
/etc/default/cassandra
#configure node 1
listen_address: ip-address-of-node-1
rpc_address: ip-address-of-node-1
seeds: ip-address-of-node-1
#configure node 2
listen_address: ip-address-of-node-2
rpc_address: ip-address-of-node-2
seeds: ip-address-of-node-1
#=====
setup
#create keyspace
create keyspace MyKeyspace1 with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = {replication_factor:1};
#use keyspace
use MyKeyspace1;
#describe keyspace
describe MyKeyspace1;