[ 
https://issues.apache.org/jira/browse/CASSANDRA-3380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130951#comment-13130951
 ] 

Brian ONeill commented on CASSANDRA-3380:
-----------------------------------------

I was originally going to maintain it as a separate project, before Gary 
Dubasbek chimed in and pointed out that it is inefficient to deploy a separate 
server (and use something like Hector) because you would end up marshaling the 
document twice with an added hop.

That is when I decided to write this as a patch for the tree since it would 
need to stay in lock-step with the CassandraServer object. (since the REST 
calls would come into the same VM and make the calls in-thread/natively against 
the java objects)

Ideally, this wouldn't remain in the contrib package.  I think it would be 
better to get it integrated into the main tree (as not to have mismatched 
expectations).  From the users perspective, I would expect to add an optional 
configuration parameter in the yaml file that would start the REST server on 
the specified port. when the parameter is defined.



                
> REST Layer 
> -----------
>
>                 Key: CASSANDRA-3380
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3380
>             Project: Cassandra
>          Issue Type: New Feature
>         Environment: Unix / Max OS X
>            Reporter: Brian ONeill
>         Attachments: trunk-3380.txt
>
>
> This is a native rest layer for Cassandra implementing 
> AbstractCassandraDaemon.
> It uses JAX-RS fueled by Apache CXF.
> Presently it supports the following operations JSON over HTTP:
>  - Create keyspace
>  - Drop keyspace
>  - Create column family
>  - Drop column family
>  - Insert row
>  - Fetch row
>  - Delete row
>  - Insert column
>  - Delete column 
>  - Fetch column
> The patch creates a new project in contrib/rest.  You can compile the project 
> using "ant", which uses ivy to pull in dependencies.  To get setup, you can 
> also use the pom.xml file and m2eclipse to get it into Eclipse.
> Once compiled, simpy run "bin/rest_cassandra" and follow along in the 
> README.txt

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to