fix install instructions

master
Ray Slakinski 2010-05-10 14:51:11 -04:00
parent 630d8c71df
commit 399dd2aaef
1 changed files with 9 additions and 8 deletions

View File

@ -11,31 +11,32 @@ Note: This work was initially based off of [tokyo-tyrant-sessions](http://github
Dependencies
------------
* [Lazyboy](http://github.com/ieure/lazyboy/) * Use Ian Eure's version as it supports 0.6.1 of Cassandra
* [Lazyboy](http://github.com/ieure/lazyboy/) (Use Ian Eure's version as it supports 0.6.1 of Cassandra)
Installing cassandra-sessions
-----------------------------
1. Either download the tarball and run 'python setup.py install', or simply
use easy install or pip like so 'easy_install cassandra-sessions'.
1. download the source and run
`python setup.py install`
2. Set 'cassandra-sessions' as your session engine, like so:
SESSION_ENGINE = 'cassandra-sessions'
`SESSION_ENGINE = 'cassandra-sessions'`
3. Add settings describing where to connect to Cassandra:
CASSANDRA_POOL = ('127.0.0.1:9160',)
CASSANDRA_SESSION_KEYSPACE = 'Testing'
`CASSANDRA_POOL = ('127.0.0.1:9160',)
CASSANDRA_SESSION_KEYSPACE = 'Testing'`
4. Create the Keyspace and Column Family in Cassandra:
<Keyspace Name="Testing">
`<Keyspace Name="Testing">
<ColumnFamily Name="Sessions" CompareWith="UTF8Type"/>
<ReplicaPlacementStrategy>org.apache.cassandra.locator.RackUnawareStrategy</ReplicaPlacementStrategy>
<ReplicationFactor>1</ReplicationFactor>
<EndPointSnitch>org.apache.cassandra.locator.EndPointSnitch</EndPointSnitch>
</Keyspace>
</Keyspace>`