Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3CC9B9284 for ; Tue, 10 Apr 2012 16:03:52 +0000 (UTC) Received: (qmail 97183 invoked by uid 500); 10 Apr 2012 16:03:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97140 invoked by uid 500); 10 Apr 2012 16:03:49 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 97131 invoked by uid 99); 10 Apr 2012 16:03:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 16:03:49 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.18.0.28] (HELO exprod5og114.obsmtp.com) (64.18.0.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 16:03:41 +0000 Received: from alpmlip12.e2k.ad.ge.com ([165.156.5.1]) (using TLSv1) by exprod5ob114.postini.com ([64.18.4.12]) with SMTP ID DSNKT4RZyD01vyuUvZG4dklTgyxbqyDav9QN@postini.com; Tue, 10 Apr 2012 09:03:21 PDT Received: from unknown (HELO cinmlef07.e2k.ad.ge.com) ([3.159.213.38]) by alpmlip12.e2k.ad.ge.com with ESMTP; 10 Apr 2012 12:03:19 -0400 Received: from cinmlch01.e2k.ad.ge.com ([3.159.212.50]) by cinmlef07.e2k.ad.ge.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 10 Apr 2012 12:03:19 -0400 Received: from CINMBCNA06.e2k.ad.ge.com (3.159.212.61) by cinmlch01.e2k.ad.ge.com (3.159.212.50) with Microsoft SMTP Server (TLS) id 14.2.283.3; Tue, 10 Apr 2012 12:03:18 -0400 Received: from CINMBCNA01.e2k.ad.ge.com ([169.254.1.155]) by CINMBCNA06.e2k.ad.ge.com ([169.254.6.116]) with mapi id 14.02.0283.003; Tue, 10 Apr 2012 12:03:18 -0400 From: "Mucklow, Blaine (GE Energy)" To: "user@cassandra.apache.org" Subject: Re: Pycassa help? Thread-Topic: Pycassa help? Thread-Index: AQHNFygFG+mqXLCGgE6aAY3xu/N+jZaUOJ8A Date: Tue, 10 Apr 2012 16:03:18 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [3.159.212.193] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 10 Apr 2012 16:03:19.0526 (UTC) FILETIME=[727E4060:01CD1733] X-Virus-Checked: Checked by ClamAV on apache.org 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)" 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=3Dkeyspace,name=3Dcolumnfamily,compar= ator >_type=3DBytesType) >system.close() >//Iterative loop to build my time series data >columns[long(ms_since_epoch)] =3D float(measurement) >//After loop >col_family.insert(key=3Did,columns=3Dcolumns) > >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