Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "CassandraCli" page has been changed by EricEvans. The comment on this change is: updated for latest output format. http://wiki.apache.org/cassandra/CassandraCli?action=diff&rev1=7&rev2=8 -------------------------------------------------- After starting the Cassandra server, launch the CLI using: {{{ - ./bin/cassandra-cli --host localhost --port 9160 + ./bin/cassandra-cli -host localhost -port 9160 }}} You should see: @@ -29, +29 @@ Value inserted. }}} - We just added a key `jsmith` and three columns (`first`, `last`, and `age`) to the `Standard1` column family. (Check out DataModel for a primer on the Table abstraction provided by Cassandra if these terms don't make sense just yet.) + We just added a key `jsmith` and three columns (`first`, `last`, and `age`) to the `Standard1` column family. (Check out DataModel for a primer on the Keyspace abstraction provided by Cassandra if these terms don't make sense just yet.) Now we read back the `jsmith` row to see what it contains: {{{ cassandra> get Keyspace1.Standard1['jsmith'] - (column=last, value=Smith; timestamp=1254669905064) + => (column=last, value=Simmons; timestamp=1259991130279) - (column=first, value=John; timestamp=1254669647261) + => (column=first, value=John; timestamp=1259991088776) - (column=age, value=42; timestamp=1254669765567) + => (column=age, value=42; timestamp=1259991135887) - Returned 3 rows. + Returned 3 results. + cassandra> }}}
