Book Image

Storm Blueprints: Patterns for Distributed Real-time Computation

Book Image

Storm Blueprints: Patterns for Distributed Real-time Computation

Overview of this book

Table of Contents (17 chapters)
Storm Blueprints: Patterns for Distributed Real-time Computation
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 locally. If there is an error during the startup, you may need to configure Cassandra by editing the ${CASSANDRA_HOME}/conf/cassandra.yaml and/or ${CASSANDRA_HOME}/conf/log4j-server.properties files. The most common problems are usually related...