I'm learning how to use Storm's Trident with Cassandra 2.0.5, Storm version 0.9.0.1. I'm also using com.hmsonline storm-cassandra 0.4.0-rc4 contrib.
My goal is simply to insert some text rows to a table with id (int), name (text) and a sentence (text) columns. id and name are primary keys.
The partitionPersist
requires a StateUpdater
, and for that I'm using com.hmsonline.storm.cassandra.trident.CassandraUpdater<K, C, V>
.
But from what it seems it gets only one key as input and not two (I need id and name).
The tuple mapper (TridentTupleMapper
) also uses one key:
TridentTupleMapper<K, C, V> tupleMapper
Maybe I'm missing something but how do I define multiple columns as keys?