Virgil gets a command-line interface (virgil-cli)
Posted by boneill42 on October 24, 2011 at 8:17 PM PDT
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&gt; bin/virgil-cli -h localhost<br />Connected to: &quot;Test Cluster&quot; 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 />&gt; (column=bar, value=33, timestamp=1319508065134)<br />&gt; (column=foo, value=1, timestamp=1319508065126)<br /><br />1 Row Returned. [/prettify]
Related Topics >>
Blog Links >>
- Login or register to post comments
- Printer-friendly version
- boneill42's blog
- 1009 reads





