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 8DD53E629 for ; Tue, 5 Feb 2013 18:21:12 +0000 (UTC) Received: (qmail 18927 invoked by uid 500); 5 Feb 2013 18:21:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18896 invoked by uid 500); 5 Feb 2013 18:21:10 -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 18886 invoked by uid 99); 5 Feb 2013 18:21:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 18:21:09 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,TRACKER_ID X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pradeepm66@gmail.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 18:21:04 +0000 Received: by mail-qa0-f54.google.com with SMTP id hg5so271805qab.13 for ; Tue, 05 Feb 2013 10:20:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=FZUojAhYvt/b/OsNDGef2kB4LdNAoPCMFw2GcaSfVwg=; b=XJWirK9e8DbOTHgjkUm8NZNv2dbjQZrOVFvtcrj3xPohBhWBQlCg+qlUlGH2pe9P8t psDaIPxJIMkr/5d0QciEog9p1AbDKLxnAALpgXaGaUSdWvUf1Jcm4pDruaBOY31vwMPh ahjJo4GREihkylVLDjFZr4c4rNfhwCgKd61d21q7IrORQDgNAhIqvY9PwG9WKagzv8m9 OwX3RkYURr2Rl5X3PrCeppc7AWj69X3URXUQoNYt8iWvJ74hO3lyzCv+1OZMVqk/vAqn VaqCtCtP3l8ixvetx251F8Oa6INO/me56iTXkhujYfC09AfI0ByxWQMM8iEThEf7Ec3o PzHA== X-Received: by 10.229.196.162 with SMTP id eg34mr4820961qcb.60.1360088443402; Tue, 05 Feb 2013 10:20:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.36.38 with HTTP; Tue, 5 Feb 2013 10:20:23 -0800 (PST) In-Reply-To: References: From: Pradeep Kumar Mantha Date: Tue, 5 Feb 2013 10:20:23 -0800 Message-ID: Subject: Pycassa KEY read error. To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0050450143c0883b1f04d4fe4420 X-Virus-Checked: Checked by ClamAV on apache.org --0050450143c0883b1f04d4fe4420 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to read fields using pycassa api. But seems like I am missing something and not getting expected results. >>> pool = pycassa.ConnectionPool('usertable', server_list=['1.1.1.1']) >>> cf = pycassa.ColumnFamily(pool, 'data') >>> cf.get('7573657232323132333035343936323937363138343433') Traceback (most recent call last): File "", line 1, in File "/global/homes/p/pmantha/mypython_repo/lib/python2.7/site-packages/pycassa/columnfamily.py", line 655, in get raise NotFoundException() pycassa.cassandra.ttypes.NotFoundException: NotFoundException(_message=None) Whereas I can retrieve the same value using cqlsh. > cqlsh 1.1.1.1 cqlsh:usertable> use usertable; cqlsh:usertable> select KEY from data where KEY='7573657232323132333035343936323937363138343433'; KEY ------------------------------------------------ 7573657232323132333035343936323937363138343433 cqlsh:usertable> what should I do to get the field through pycassa API. thanks pradeep --0050450143c0883b1f04d4fe4420 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=A0

I am trying to read fields using pycassa ap= i. But seems like I am missing something and not getting expected results.<= /div>

>>> pool =3D pycassa.ConnectionPool('usert= able', server_list=3D['1.1.1.1'])
>>> cf =3D pycassa.ColumnFamily(pool, 'data')
>>> cf.get('757365723232313233303534393632393736313834= 3433')
Traceback (most recent call last):
=A0 File = "<stdin>", line 1, in <module>
=A0 File "/global/homes/p/pmantha/mypython_repo/lib/python2.7/sit= e-packages/pycassa/columnfamily.py", line 655, in get
=A0 = =A0 raise NotFoundException()
pycassa.cassandra.ttypes.NotFoundEx= ception: NotFoundException(_message=3DNone)


Whereas I can retrieve the same va= lue using cqlsh.

> cqlsh 1.1.1.1=A0
<= div>cqlsh:usertable> use usertable;
cqlsh:usertable> select= KEY from data where KEY=3D'7573657232323132333035343936323937363138343= 433';
=A0KEY
------------------------------------------------
=A07573657232323132333035343936323937363138343433

cqlsh:usertable>=A0


=
what should I do to get the field through pycassa API.

thanks
pradeep


--0050450143c0883b1f04d4fe4420--