To give everyone an update... I was able to take what Gary had and update it to run on trunk. I like the native integration, as opposed to layering it on top of Hector. It's working out well. I layered in JAX-RS to replace the hand parsing of the url, and the handlers. I have reads and writes working through the StorageProxy, but I think I'm going to raise it up one layer to take advantage of ThriftValidations. (but still using direct method invocation instead of the thift client) I added unit tests for the read/write of columns.
I'm going to add a few other operations (add/drop keyspace, add/drop CF). Then it should be in a state where I can share it. -brian On Mon, Oct 10, 2011 at 10:06 PM, Jeremy Hanna <jeremy.hanna1...@gmail.com>wrote: > Brian, > > If you end up doing something with the rest api and making it > available/open source, please post again either here or on the user list. I > think others would be interested and may contribute to it. > > Cheers, > > Jeremy > > On Oct 10, 2011, at 8:42 PM, Brian O'Neill wrote: > > > Thanks Gary. Perfect. Checking it out now. > > > > Performance isn't much of a concern for us through the REST interface. > We > > are using the Hadoop/PIG integration to do the heavy lifting. This will > be > > mostly for reads and small number of writes. > > > > I'll definitely give this a try. Thanks again. I'll let you know how it > > turns out. > > > > -brian > > > > On Mon, Oct 10, 2011 at 9:35 PM, Gary Dusbabek <gdusba...@gmail.com> > wrote: > > > >> It turns out that it is pretty easy (or it was a year ago) to replace > >> the native Cassandra transport with your own. I wrote about it on my > >> blog (http://www.onemanclapping.org/2010/09/restful-cassandra.html), > >> using REST as an example. > >> > >> > >> On Mon, Oct 10, 2011 at 20:12, Brian O'Neill <b...@alumni.brown.edu> > >> wrote: > >>> My team desperately needs a REST API for Cassandra. > >>> > >>> I saw the following: > >>> http://code.google.com/p/restish/ > >>> from > >>> > >> > http://crlog.info/2011/01/29/restish-wrapper-for-hectorcassandra-data-manipulation/ > >>> > >>> But it appears to have little activity and documentation. > >>> > >>> That lead me to start work on a contrib/rest module, but before I get > to > >> far > >>> I wanted to ask if there was any effort underway for a REST Server/API. > >>> If not, I'll continue developing the REST server. Any preference for a > >> REST > >>> stack? (JAX-RS on Apache-CXF? Raw Servlets? Netty? etc.) > >>> > >>> Until I hear back, I'll continue with the JAX-RS / Apache CXF > >> implementation > >>> I have cooking. > >>> > >>> -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/ > >>> > >> > > > > > > > > -- > > 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/ > > -- 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/