incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian O'Neill" <>
Subject Contribution: Native REST Layer for Cassandra
Date Tue, 18 Oct 2011 20:21:44 GMT

When you finish celebrating the 1.0 release, I just submitted a native rest
layer for Cassandra.

It uses JAX-RS and Apache CXF supporting the following operations (JSON over

   - Create keyspace
   - Drop keyspace
   - Create column family
   - Drop column family
   - Insert row
   - Fetch row
   - Delete row
   - Insert column
   - Fetch column
   - Delete column

This is a new module under contrib/rest. It builds using ant and ivy.  I
also included a maven pom.xml file that makes it easier to get setup in
Eclipse for those that use m2eclipse.  You start the server with
bin/rest_cassandra.  After that, you can issue all commands over HTTP on
port 8080.  I included example curl commands in the README.txt.  There are
junit tests that provide good code coverage of the JSON marshalling, the
system and data operations as well as the REST layer.

Let me know if you have any trouble building / using it.  In the meantime,
I'll start work on some additional todo's. Specifically we should add:
- Better exception handling
- Host/Port configuration
- Security
- XML support
- Binary object / Byte support (assumes String's right now)

(kudos to Gary Dusbabek for the initial thought to implement this as a
native layer)

all the best,

Brian ONeill
Lead Architect, Health Market Science (

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message