Skip to content
nu7hatch edited this page Oct 16, 2010 · 2 revisions

Cassandra is an open source distributed database management system. It is an Apache Software Foundation top-level project designed to handle very large amounts of data spread out across many commodity servers while providing a highly available service with no single point of failure.

Don't have Cassandra yet?

All information about Cassandra installation and setup you'll find on its wiki page.

After Cassandra installation you have to install also the cassandra client for ruby. You can do it easily with rubygems:

sudo gem install cassandra

Configuration

Once you have installed and configured your Cassandra database, then you can start playing with ACLatraz. Configuration is little bit different than in other stores:

Aclatraz.init :cassandra, "Super1", "Keyspace1", "127.0.0.1:9160"

The second parameter is the name of column family used by ACLatraz (remember that it have to be a super column family). Other params are the same as for Cassandra constructor.

You can also specify an Cassandra object with already established connection as third param:

my_cassandra = Cassandra.new("Keyspace1", "127.0.0.1:9160")
Aclatraz.init :cassandra, "Super1", my_cassandra 
Clone this wiki locally