Created
March 17, 2010 23:39
-
-
Save clemesha-ooi/335869 to your computer and use it in GitHub Desktop.
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
# Ran on EC2, using AMI "ami-ccf615a5" (Ubuntu 9.04) | |
# "Thrift" was installed as root. "Cassandra" and "Twissandra" were installed and run using a non-root user ("cassandra") I created. | |
apt-get update | |
#deps for Thrift and Cassandra. | |
apt-get -y install openjdk-6-jdk ant subversion g++ make flex bison python-dev ruby1.8-dev libboost-dev libevent-dev automake pkg-confi | |
g libtool make | |
# Thrift install: | |
svn co http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift | |
cd thrift/ | |
./bootstrap.sh | |
./configure | |
make | |
make install | |
# Cassandra Install: | |
svn checkout https://svn.apache.org/repos/asf/cassandra/trunk cassandra | |
cd cassandra/ | |
ant ivy-retrieve | |
ant build | |
# Cassandra config/run | |
# IMPORTANT: first edit conf files if need (e.g change <CommitLogDirectory>, etc if needed): | |
vim conf/storage-conf.xml #I used the "storage-conf.xml" from "twissandra" (see below) | |
vim conf/log4j.properties | |
sh bin/cassandra -f | |
# install and run 'Twissandra', follow instructions here: | |
http://github.com/ericflo/twissandra | |
# (before I did the above I did: 'sudo apt-get install git-core python-setuptools'): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment