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 657989D48 for ; Wed, 22 Feb 2012 16:01:33 +0000 (UTC) Received: (qmail 25506 invoked by uid 500); 22 Feb 2012 16:01:31 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 25478 invoked by uid 500); 22 Feb 2012 16:01:31 -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 25464 invoked by uid 99); 22 Feb 2012 16:01:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 16:01:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul@datastax.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yw0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 16:01:23 +0000 Received: by yhkk25 with SMTP id k25so126984yhk.31 for ; Wed, 22 Feb 2012 08:01:02 -0800 (PST) Received-SPF: pass (google.com: domain of paul@datastax.com designates 10.229.78.206 as permitted sender) client-ip=10.229.78.206; Authentication-Results: mr.google.com; spf=pass (google.com: domain of paul@datastax.com designates 10.229.78.206 as permitted sender) smtp.mail=paul@datastax.com Received: from mr.google.com ([10.229.78.206]) by 10.229.78.206 with SMTP id m14mr22482834qck.78.1329926462513 (num_hops = 1); Wed, 22 Feb 2012 08:01:02 -0800 (PST) Received: by 10.229.78.206 with SMTP id m14mr18903784qck.78.1329926462291; Wed, 22 Feb 2012 08:01:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.139.140 with HTTP; Wed, 22 Feb 2012 08:00:42 -0800 (PST) In-Reply-To: References: <201202220917.31053.mateusz-lists@ant.gliwice.pl> From: paul cannon Date: Wed, 22 Feb 2012 10:00:42 -0600 Message-ID: Subject: Re: Doubt regarding CQL To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0023544708305cbe3d04b98fa2cd X-Gm-Message-State: ALoCoQl+o1620V9sVSSFftNE67uz/jdRVACvD/TC1T7kN630lRmmyaPnqNG825uoDat616DIP5Fq X-Virus-Checked: Checked by ClamAV on apache.org --0023544708305cbe3d04b98fa2cd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Rishabh- It looks like you're not actually using the cqlsh that comes with Cassandra 1.0.7. Are you using an old version of the Python CQL driver? Old versions of the driver had cqlsh bundled with it, instead of with Cassandra= . The 1.0.7 Debian/Ubuntu packages do not include cqlsh, because of some packaging+distribution difficulties (resolved in 1.1). One easy way to get cqlsh as part of a package is to use the free DataStax Community Edition: see http://www.datastax.com/products/community . Cqlsh is included in the "dsc" package. That package will also bring in thrift and any other dependencies you need. p On Wed, Feb 22, 2012 at 3:00 AM, Rishabh Agrawal < rishabh.agrawal@impetus.co.in> wrote: > Thanks for the reply > I installed 0.8.0 drift package. But still problem persists. > > -----Original Message----- > From: Mateusz Korniak [mailto:mateusz-lists@ant.gliwice.pl] > Sent: Wednesday, February 22, 2012 1:47 PM > To: user@cassandra.apache.org > Subject: Re: Doubt regarding CQL > > On Wednesday 22 of February 2012, Rishabh Agrawal wrote: > > I have installed CQL drivers for python. When I try execute cqlsh I > > get following error cql-1.0.3$ cqlsh localhost 9160 > > (...) > > File > > "/usr/local/lib/python2.7/dist-packages/cql/cassandra/ttypes.py", > > line 7, in from thrift.Thrift import * > > ImportError: No module named thrift.Thrift > > Seems you do not have installed python thrift module. > > In my distro (PLD) it is: > Package: python-thrift-0.5.0-4.i686 > /usr/lib/python2.7/site-packages: Thrift-0.1-py2.7.egg-info, > /usr/lib/python2.7/site-packages/thrift: TSCons.pyc, TSCons.pyo, > TSerialization.pyc, TSerialization.pyo, Thrift.pyc, Thrift.pyo, > __init__.pyc, __init__.pyo, > /usr/lib/python2.7/site-packages/thrift/protocol: TBinaryProtocol.pyc, > TBinaryProtocol.pyo, TCompactProtocol.pyc, TCompactProtocol.pyo, > TProtocol.pyc, TProtocol.pyo, __init__.pyc, __init__.pyo, fastbinary.so > /usr/lib/python2.7/site-packages/thrift/server: THttpServer.pyc, > THttpServer.pyo, TNonblockingServer.pyc, TNonblockingServer.pyo, > TServer.pyc, TServer.pyo, __init__.pyc, __init__.pyo > /usr/lib/python2.7/site-packages/thrift/transport: THttpClient.pyc, > THttpClient.pyo, TSocket.pyc, TSocket.pyo, TTransport.pyc, TTransport.pyo= , > TTwisted.pyc, TTwisted.pyo, __init__.pyc, __init__.pyo > > > Regards, > > -- > Mateusz Korniak > > ________________________________ > > Impetus=E2=80=99 Head of Innovation labs, Vineet Tyagi will be presenting= on =E2=80=98Big > Data Big Costs?=E2=80=99 at the Strata Conference, CA (Feb 28 - Mar 1) > http://bit.ly/bSMWd7. > > Listen to our webcast =E2=80=98Hybrid Approach to Extend Web Apps to Tabl= ets & > Smartphones=E2=80=99 available at http://bit.ly/yQC1oD. > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. > --0023544708305cbe3d04b98fa2cd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Rishabh-

It looks like you're not actually using the= cqlsh that comes with Cassandra 1.0.7. =C2=A0Are you using an old version = of the Python CQL driver? =C2=A0Old versions of the driver had cqlsh bundle= d with it, instead of with Cassandra.

The 1.0.7 Debian/Ubuntu packages do not include cqlsh, = because of some packaging+distribution difficulties (resolved in 1.1). =C2= =A0One easy way to get cqlsh as part of a package is to use the free DataSt= ax Community Edition: see http://www.datastax.com/products/community . =C2=A0Cqlsh is inclu= ded in the "dsc" package. =C2=A0That package will also bring in t= hrift and any other dependencies you need.

p


On Wed, = Feb 22, 2012 at 3:00 AM, Rishabh Agrawal <rishabh.agrawal@impetus.co.in><= /span> wrote:
Thanks for the reply
I installed 0.8.0 drift package. But still problem persists.

-----Original Message-----
From: Mateusz Korniak [mailto:mateusz-lists@ant.gliwice.pl]
Sent: Wednesday, February 22, 2012 1:47 PM
To: user@cassandra.apache.org<= /a>
Subject: Re: Doubt regarding CQL

On Wednesday 22 of February 2012, Rishabh Agrawal wrote:
> I have installed CQL drivers for python. When I try execute cqlsh I > get following error cql-1.0.3$ cqlsh localhost 9160
> (...)
> =C2=A0 File
> "/usr/local/lib/python2.7/dist-packages/cql/cassandra/ttypes.py&q= uot;,
> line 7, in <module> from thrift.Thrift import *
> ImportError: No module named thrift.Thrift

Seems you do not have installed python thrift module.

In my distro (PLD) it is:
Package: =C2=A0 =C2=A0 =C2=A0 =C2=A0python-thrift-0.5.0-4.i686
/usr/lib/python2.7/site-packages: =C2=A0Thrift-0.1-py2.7.egg-info,
/usr/lib/python2.7/site-packages/thrift: =C2=A0TSCons.pyc, TSCons.pyo, TSer= ialization.pyc, TSerialization.pyo, Thrift.pyc, Thrift.pyo, __init__.pyc, _= _init__.pyo,
/usr/lib/python2.7/site-packages/thrift/protocol: =C2=A0TBinaryProtocol.pyc= , TBinaryProtocol.pyo, TCompactProtocol.pyc, TCompactProtocol.pyo, TProtoco= l.pyc, TProtocol.pyo, __init__.pyc, __init__.pyo, fastbinary.so
/usr/lib/python2.7/site-packages/thrift/server: =C2=A0THttpServer.pyc, THtt= pServer.pyo, TNonblockingServer.pyc, TNonblockingServer.pyo, TServer.pyc, T= Server.pyo, __init__.pyc, __init__.pyo
/usr/lib/python2.7/site-packages/thrift/transport: =C2=A0THttpClient.pyc, T= HttpClient.pyo, TSocket.pyc, TSocket.pyo, TTransport.pyc, TTransport.pyo, T= Twisted.pyc, TTwisted.pyo, __init__.pyc, __init__.pyo


Regards,

--
Mateusz Korniak

_______________________= _________

Impetus=E2=80=99 Head of Innovation labs, Vineet Tyagi will be presenting o= n =E2=80=98Big Data Big Costs?=E2=80=99 at the Strata Conference, CA (Feb 2= 8 - Mar 1)
http://bit.ly= /bSMWd7.

Listen to our webcast =E2=80=98Hybrid Approach to Extend Web Apps to Tablet= s & Smartphones=E2=80=99 available at http://bit.ly/yQC1oD.


NOTE: This message may contain information that is confidential, proprietar= y, privileged or otherwise protected by law. The message is intended solely= for the named addressee. If received in error, please destroy and notify t= he sender. Any use of this email is prohibited when received in error. Impe= tus does not represent, warrant and/or guarantee, that the integrity of thi= s communication has been maintained nor that the communication is free of e= rrors, virus, interception or interference.

--0023544708305cbe3d04b98fa2cd--