Categories
general

Cassandra cannot parse ‘my_key’ as hex bytes

If you have “cannot parse ‘whatever_my_key’ as hex bytes” when you try to query Cassandra for some data, as in example below:

[code language=”bash”]
[default@CassandraCluster] get ServerLog[‘my_key’] limit 10;
org.apache.cassandra.db.marshal.MarshalException: cannot parse ‘my_key’ as hex bytes
[/code]

then you must set the client-side encoding with assume command:

[code language=”bash”]
[default@CassandraCluster] assume ServerLog keys as utf8;
[/code]

Categories
Big Data

Big data and Cassandra at Netflix

In an interview for odbms, Christos Kalantzis and Jason Brown talks about big data analytics and how Cassandra is used at Netflix.