Configuring Cassandra

A working configuration file is included in the solution. However, starting in Cassandra 0.7 you'll need to configure the column families yourself. While the following provides a very basic configuration, there are many more options that you can choose from and I strongly recommend that you have a look at Cassandra's configuration documentation at before proceeding.

1. From your Cassandra "conf" directory, edit "cassandra.yaml" and change your partitioner to "org.apache.cassandra.dht.ByteOrderedPartitioner". This should be somewhere around line 50 (49 for me).

2. From your Cassandra "bin" directory, start up "cassandra" (in a non-Windows installation, you can use the -f flag to force Cassandra to run in the foreground instead of being daemonized).

3. From your Cassandra "bin" directory, start up the "cassandra-cli".

4. First, you'll need to create a Keyspace. Enter the following commands:

create keyspace Lucandra
use Lucandra

5. Next, you need to create the column families. Enter the following commands:

create column family D with column_type='Super' and comparator='BytesType' and subcomparator='BytesType'
create column family T with column_type='Standard' and comparator='BytesType'

6. You're good to go!

Last edited Nov 26, 2010 at 9:06 AM by cylwit, version 6


No comments yet.