JavaHomeを設定
export JAVA_HOME=/Library/Java/Home
cassandraインストール
sudo mkdir -p /opt/cassandra
sudo chown -R {you} /opt/cassandra
sudo mkdir -p /var/log/cassandra
sudo chown -R {you} /var/log/cassandra
touch /var/log/cassandra/system.log
sudo mkdir -p /var/lib/cassandra
sudo chown -R {you} /var/lib/cassandra
svn co https://svn.apache.org/repos/asf/incubator/cassandra/tags/cassandra-0.5.1 /opt/cassandra/cassandra-0.5.1
cd /opt/cassandra/cassandra-0.5.1
ant
// 起動してみる
bin/cassandra -f
// CLIを起動してみる
bin/cassandra-cli --host localhost --port 9160
Thriftインストール
sudo port install boost
sudo port install libevent
sudo port install pkgconfig
svn co http://svn.apache.org/repos/asf/incubator/thrift/tags/thrift-0.2.0 /opt/cassandra/thrift-0.2.0
cd /opt/cassandra/thrift-0.2.0
./bootstrap.sh
./configure --with-boost=/opt/local --with-libevent=/opt/local --prefix=/opt/local
sudo make install
cd lib/py
python setup.py install
cd ../perl
perl Makefile.PL
sudo make install
cd ../rb
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
// 試してみる
cd /opt/cassandra/cassandra-0.5.1/interface/
thrift --gen py:new_style cassandra.thrift