-
Notifications
You must be signed in to change notification settings - Fork 28
Home
boneill42 edited this page Feb 7, 2012
·
4 revisions
Virgil is a services layer and GUI on top of Cassandra.
- Make Pig/Hadoop on Cassandra accessible via REST
- Provide a slick GUI that allows you to inspect and manipulate data via a browser
- Provide a REST interface for the majority of Cassandra's functions
Join the following Google Groups:
-
Download the server
-
Start the server by running:
bin/virgil -host CASSANDRA_HOST
-
This uses the log4j.xml file from the conf directory, which logs to log/virgil.log.
-
Open http://localhost:8080/ to access the UI.
-
Use the following curl commands to test it out.
curl -X PUT http://localhost:8080/virgil/data/playground/
curl -X PUT http://localhost:8080/virgil/data/playground/toys/
curl -X PUT http://localhost:8080/virgil/data/playground/toys/swingset -d "{\"foo\":\"1\",\"bar\":\"33\"}"
Updates columns with new values or adds columns if they don't exist.
curl -X PATCH http://localhost:8080/virgil/data/playground/toys/swingset -d "{\"foo\":\"3\",\"erg\":\"42\"}"
curl -X GET http://localhost:8080/virgil/data/playground/toys/swingset/
curl -X PUT http://localhost:8080/virgil/data/playground/toys/swingset/snaf -d "lisa"
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/swingset/snaf
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/swingset/
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/
curl -X DELETE http://localhost:8080/virgil/data/playground/