Posted by boneill42
on October 24, 2011 at 8:17 PM PDT
Virgil, the GUI and REST layer for Cassandra, now also provides a command-line interface (virgil-cli) and a thrift daemon to interact with.
Tonight I bundled the cassandra command-line interface (CLI) into virgil. Since the CLI uses the thrift-based CassandraDaemon, the main method now starts a thrift server along side the REST server.
Now, when you (or your application) issues commands through the REST interface, you can verify that they worked through the command-line interface. For more information, check out the wiki.
Specifically, if you use the curl commands in the Getting Started section
. You should see the following in the command-line interface.
[prettify] bone@zen:~/dev/code.google.com/virgil/trunk> bin/virgil-cli -h localhost<br />Connected to: "Test Cluster" on localhost/9160<br />Welcome to the Cassandra CLI.<br /><br />Type 'help;' or '?' for help.<br />Type 'quit;' or 'exit;' to quit.<br /><br />[default@unknown] use playground;<br />Authenticated to keyspace: playground<br />[default@playground] list toys;<br />Using default limit of 100<br />-------------------<br />RowKey: swingset<br />> (column=bar, value=33, timestamp=1319508065134)<br />> (column=foo, value=1, timestamp=1319508065126)<br /><br />1 Row Returned.