Set up Twissandra
费朗
2023-12-01
Setting up twissandra involves a bunch of pain. So I write this post for memory.
Most of content is a copy from http://github.com/ericflo/twissandra.
My Environment is ubuntu 10.04 with Python 2.6.5 installed.
Twissandra
---------------------
- $ git clone git://github.com/ericflo/twissandra.git
Revision 818cead7774470a0509448fe33901007375a373d is used.
Use pycassa with revision 839ce744cced53f17cae2f7dec634feddead9d61 to replace
pycassa in twissandra/deps. Otherwise, there will be Thrift API version mismatch
problem.
Cassandra
-------------------
- $ svn co http://svn.apache.org/repos/asf/cassandra/trunk
- $ ant build
- $ sudo mkdir -p /var/log/cassandra
- $ sudo chown -R `whoami` /var/log/cassandra
- $ sudo mkdir -p /var/lib/cassandra
- $ sudo chown -R `whoami` /var/lib/cassandra
- $ mv conf/cassandra.yaml conf/cassandra.yaml.bak
- $ cp twissandra/cassandra.yaml conf
- $ ./bin/cassandra -f
- $ ./bin/schematool 127.0.0.1 8080 import
Revision 998393 is used.
Thrift
------------------
Use Thrift-0.2.0.
Python Virtual Env
----------------------------------
Install virtualenv:
$ sudo easy_install -U virutalenv
Create a new virtual environment:
$ virtualenv twiss
$ source /twiss/bin/activate
Install pip
$ easy_install -U pip
Install all the dependencies:
$ pip install -U -r twissandra/requirements.txt
Start WebServer
-----------------------------
$ cd twissandra
$ python manager.py runserver
Access http://locahost:8000/