incubator-cassandra-dev mailing list archives

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

When you finish celebrating the 1.0 release, I just submitted a native rest
layer for Cassandra.
https://issues.apache.org/jira/browse/CASSANDRA-3380

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


   - 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

-- 
Brian ONeill
Lead Architect, Health Market Science (http://healthmarketscience.com)
mobile:215.588.6024
blog: http://weblogs.java.net/blog/boneill42/
blog: http://brianoneill.blogspot.com/

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