Hi,
I'm a Cassandra newbie, so I've tried to do the Twissandra examples as
described here
http://www.rackspace.com/cloud/blog/2010/05/12/cassandra-by-example/
and one thing I can't get through is inserting data into the Userline/
Timeline column families. I guess it has something to do with the
LongType comparator ... in the python version they use some
struct.pack (not sure what it is, I've newer worked with Python). How
to do that using Cassie?
The column family is defined like this (as printed by cassandra-cli)
ColumnFamily: Userline
Columns sorted by: org.apache.cassandra.db.marshal.LongType
Row cache size / save period: 0.0/0
Key cache size / save period: 200000.0/14400
Memtable thresholds: 0.29062499999999997/62/1440
GC grace seconds: 864000
Compaction min/max thresholds: 4/32
Read repair chance: 1.0
Built indexes: []
and in PHP I do this
$r = $cassie->cf('Userline')->key($userId)->column('timestamp')-
>set(time());
where userId is an MD5 hash. It just returns 'false' so maybe I'm
completely wrong. Is it possible to get more details why the call
failed?
regards
Tomas