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)" <blaine.muck...@ge.com>
wrote:

>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
>snippets:
>
>system.create_column_family(keyspace=keyspace,name=columnfamily,comparator
>_type=BytesType)
>system.close()
>//Iterative loop to build my time series data
>columns[long(ms_since_epoch)] = float(measurement)
>//After loop
>col_family.insert(key=id,columns=columns)
>
>I then get the following error:
>TypeError: A str or unicode value was expected, but long was received
>instead (1321574400)
>
>Any thoughts?
>
>Thanks,
>
>Blaine Mucklow

  • Pycassa help? Mucklow, Blaine (GE Energy)
    • Re: Pycassa help? Mucklow, Blaine (GE Energy)

Reply via email to