cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mucklow, Blaine (GE Energy)" <>
Subject Pycassa help?
Date Tue, 10 Apr 2012 14:41:31 GMT
Hi all,

I had a lot of success using Java+Hector, but was trying to migrate to pycassa and was having
some 'simple' issues.  What I am trying to do is create a column family where the following
KEY-> String ColumnName-> LongType ColumnValue-> DoubleType

Basically this is time series data for an 'id'.  I had no problems with this in Hector but
am struggling in pycassa.  I have the following code snippets:

//Iterative loop to build my time series data
columns[long(ms_since_epoch)] = float(measurement)
//After loop

I then get the following error:
TypeError: A str or unicode value was expected, but long was received instead (1321574400)

Any thoughts?


Blaine Mucklow

View raw message