I cannot retrieve data from Cassandra after I exit the cli. When I go back to get the data in another session, I get this error:
org.apache.cassandra.db.marshal.MarshalException: cannot parse ‘jsmith’ as hex bytes
It seems the column family stays and the keyspace too.
I also changed the keys format to ascii (assume Users keys as ascii;)… And that does not stay set either.
Is there a reason why? What is going on?
All of the “assume” commands are temporary and limited to a single cli session. For those not sitting in front of the cli right now, we’re referring to these:
These are purely client side.
What you want to do instead is to record that metadata permanently in the ColumnFamily definition, e.g. from the readme,
This is different from “assume” in 3 ways:
Assume is primarily there as a workaround for old data sets that cannot be updated to use a “real” server-side type.