cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mucklow, Blaine (GE Energy)" <>
Subject Re: Pycassa help?
Date Tue, 10 Apr 2012 16:03:18 GMT
Turns out if you read to the bottom of the tutorial you find answers.
Please disregard this mail, I found my answer.


On 4/10/12 10:41 AM, "Mucklow, Blaine (GE Energy)" <>

>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 occurs:
>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
>//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