Created
January 18, 2012 12:57
-
-
Save andreisavu/1632893 to your computer and use it in GitHub Desktop.
Deploying Cassandra on EC2 with Whirr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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