Setting up Titan to use the Cassandra storage backend

We've seen that Titan supports different storage backends. Exploring all three options is beyond the scope of this chapter (you can learn more about Titan and its configuration options at http://thinkaurelius.github.io/titan/), so we will focus on using the Cassandra (http://cassandra.apache.org) storage backend.

Installing Cassandra

In order to download and run Cassandra, we need to execute the following commands:

wget http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.2.9/apache-cassandra-1.2.9-bin.tar.gz
tar -zxf ./cassandra-1.2.9.bin.tar.gz
cd cassandra-1.2.9
./bin/cassandra -f

The default file that comes with the Cassandra distribution will create a single-node Cassandra database running ...

Get Storm Blueprints: Patterns for Distributed Real-time Computation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.