CLI Tricks

You should be aware that using the right assumption for you column family keys is 'key' for the CLI to work correctly. None of the data retrieval/manipulation commands will work as expected if the key assumption is wrong.

Retrieve by UUID

If you are using the com.eaio.uuid.UUID as your entity primary key and would like to use the cassandra CLI to query your entity, you have to change the assumption for the key type for that column familiy to lexicaluuid or timeuuid using
assume COLFAM keys as lexicaluuid After that you can retrieve your entity values with something like
get COLFAM['fefcc560-67a8-11e0-bde0-c232b2516aea'];

https://c.statcounter.com/9397521/0/fe557aad/1/|stats

  • No labels