Database Reference
In-Depth Information
Chiton (Python)
Chiton is a Cassandra browser written by Brandon Williams that uses the Python GTK frame-
work. You can get it from http://github.com/driftx/chiton . It has several prerequisites, so a little
setup is required. Before you can use it, make sure you have the following setup:
▪ Python 2.5 or better.
▪ Twisted Python (an event-driven networking interface for Python), available at ht-
tp://twistedmatrix.com/trac .
▪ Thrift (0.2).
▪ PyGTK 2.14 or later (a graphical user interface kit for Python), available at ht-
tp://www.pygtk.org . This in turn requires GTK+. You likely already have it if you're on
Linux; you can download the binary if you're on Windows. Just uncompress the download
into a directory and manually add the binsubfolder to the system's path environment vari-
able.
Pelops (Java)
Pelops is a free, open source Java client written by Dominic Williams. It is similar to Hector in
that it's Java-based, but it was started more recently. This has become a very popular client. Its
goals include the following:
▪ To create a simple, easy-to-use client
▪ To completely separate concerns for data processing from lower-level items such as connec-
tion pooling
▪ To act as a close follower to Cassandra so that it's readily up to date
And the API is much simpler than using the low-level stuff exposed by Thrift and Avro. To write
data, you just need a Mutator class; to read data, just use a Selector . Here's a brief sample
from Williams' website that creates a connection pool to a list of Cassandra servers, then writes
multiple subcolumn values to a super column:
Pelops.addPool(
"Main",
new String[] { "cass1.database.com", "cass2.database.com", "cass3.database.com"},
9160,
new Policy());
Mutator mutator = Pelops.createMutator("Main", "SupportTickets");
Search WWH ::




Custom Search