Skip to content

Instantly share code, notes, and snippets.

@andreisavu
Created January 18, 2012 12:57
Show Gist options
  • Save andreisavu/1632893 to your computer and use it in GitHub Desktop.
Save andreisavu/1632893 to your computer and use it in GitHub Desktop.
Deploying Cassandra on EC2 with Whirr
# Cassandra on EC2 using Apache Whirr trunk (18 January 2012)
# Clone the repo from the Apache servers
git clone git://git.apache.org/whirr.git
cd whirr
# build binary artefacts on your machine
mvn clean install
# add your credentials here
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
# make sure you have pair of keys in ~/.ssh/
# start a cluster
./bin/whirr launch-cluster --config recipes/cassandra-ec2.properties
# list the nodes
./bin/whirr list-cluster --config recipes/cassandra-ec2.properties
# login using SSH
ssh <remote-machine-public-ip>
# destroy the cluster
./bin/whirr destroy-cluster --config recipes/cassandra-ec2.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment