Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 34130 invoked from network); 9 Nov 2010 18:19:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 18:19:59 -0000 Received: (qmail 40977 invoked by uid 500); 9 Nov 2010 18:20:26 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 40935 invoked by uid 500); 9 Nov 2010 18:20:25 -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 40927 invoked by uid 99); 9 Nov 2010 18:20:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 18:20:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 18:20:19 +0000 Received: by eyd10 with SMTP id 10so3939682eyd.31 for ; Tue, 09 Nov 2010 10:19:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=61lO2QjWTF1CXkm0dOxH9XEns0v/ENfhfYMsvSlPagk=; b=i8RsO55wSftYTLJYiB6U5tFL7P186YYpwCC1tBIGmpB05PEfXD4FVbBVTQVJXzsQn0 HRCE9NA0HkmCyThV+JNxfJafmqKKKGHfy31Qme6VYQMzMwyX7ScG+WGQWeQKVTUyvEIE tNQbhWjfVzL4SnnB1OPxaACfGdukvYDH4qTGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=cr8DE7rzFiNRE3W7pAPP2Jnbfyf3HI14KeMpnjnZDfmnonM25DCGymFbpoKoJ/1GO0 zFyRVqPS7QBhj0rvrtpfNHX5UEt5MGKfvkGZBkcbBe6GHDmy6gBnZHFPrgRrosrinv1o KEcmbCrkZDXLUUDcBnWNQqV96xkROXW9gLcYI= MIME-Version: 1.0 Received: by 10.216.153.147 with SMTP id f19mr33166wek.40.1289326797118; Tue, 09 Nov 2010 10:19:57 -0800 (PST) Received: by 10.216.18.21 with HTTP; Tue, 9 Nov 2010 10:19:57 -0800 (PST) In-Reply-To: <9F83B51B5E3935419B14FC2D1436FC0947EF5A2E@xchange.eutechnyx.com> References: <9F83B51B5E3935419B14FC2D1436FC0947EF59CF@xchange.eutechnyx.com> <9F83B51B5E3935419B14FC2D1436FC0947EF5A2E@xchange.eutechnyx.com> Date: Tue, 9 Nov 2010 12:19:57 -0600 Message-ID: Subject: Re: Cassandra - python communication problem From: Jonathan Ellis To: user Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org python_cassandra-0.6.1 sure doesn't look like a package I'd expect to work with 0.7. On Tue, Nov 9, 2010 at 12:07 PM, Dr. Andrew Perella wro= te: > Thanks Jonathan, > So it looks like the python bindings are using a deprecated non framed pr= otocol. Leaving that problem aside for a moment I changed the server to wor= k in non framed mode and now get a different error: > > > vu@vs001:~/apache-cassandra-0.7.0-beta3/interface/gen-py/cassandra$ Cassa= ndra-remote =A0-h localhost:9160 describe_keyspace systemTraceback (most re= cent call last): > =A0File "/usr/local/bin/Cassandra-remote", line 5, in > =A0 =A0pkg_resources.run_script('python-cassandra=3D=3D0.6.1', 'Cassandra= -remote') > =A0File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in= run_script > =A0 =A0self.require(requires)[0].run_script(script_name, ns) > =A0File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, i= n run_script > =A0 =A0execfile(script_filename, namespace, namespace) > =A0File "/usr/local/lib/python2.6/dist-packages/python_cassandra-0.6.1-py= 2.6.egg/EGG-INFO/scripts/Cassandra-remote", line 204, in > =A0 =A0pp.pprint(client.describe_keyspace(args[0],)) > =A0File "/usr/local/lib/python2.6/dist-packages/python_cassandra-0.6.1-py= 2.6.egg/cassandra/Cassandra.py", line 1006, in describe_keyspace > =A0 =A0return self.recv_describe_keyspace() > =A0File "/usr/local/lib/python2.6/dist-packages/python_cassandra-0.6.1-py= 2.6.egg/cassandra/Cassandra.py", line 1030, in recv_describe_keyspace > =A0 =A0raise TApplicationException(TApplicationException.MISSING_RESULT, = "describe_keyspace failed: unknown result"); > thrift.Thrift.TApplicationException: describe_keyspace failed: unknown re= sult > > Any ideas? > Cheers, > Andrew > > -----Original Message----- > From: Jonathan Ellis [mailto:jbellis@gmail.com] > Sent: 09 November 2010 17:56 > To: user > Subject: Re: Cassandra - python communication problem > > You're using an unframed transport to talk to a framed server, or vice ve= rsa. > > On Tue, Nov 9, 2010 at 11:47 AM, Dr. Andrew Perella w= rote: >> Hi, >> >> >> >> I have been trying to connect to Cassandra 0.7.0-beta3 via python to no >> avail: >> >> >> >> vu@vs001:~/apache-cassandra-0.7.0-beta3/interface/gen-py/cassandra$ >> Cassandra-remote=A0 -h localhost:9160 describe_keyspace system >> >> Traceback (most recent call last): >> >> =A0 File "/usr/local/bin/Cassandra-remote", line 5, in >> >> =A0=A0=A0 pkg_resources.run_script('python-cassandra=3D=3D0.6.1', 'Cassa= ndra-remote') >> >> =A0 File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, = in >> run_script >> >> =A0=A0=A0 self.require(requires)[0].run_script(script_name, ns) >> >> =A0 File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194,= in >> run_script >> >> =A0=A0=A0 execfile(script_filename, namespace, namespace) >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/python_cassandra-0.6.1-py2.6.egg= /EGG-INFO/scripts/Cassandra-remote", >> line 204, in >> >> =A0=A0=A0 pp.pprint(client.describe_keyspace(args[0],)) >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/python_cassandra-0.6.1-py2.6.egg= /cassandra/Cassandra.py", >> line 1006, in describe_keyspace >> >> =A0=A0=A0 return self.recv_describe_keyspace() >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/python_cassandra-0.6.1-py2.6.egg= /cassandra/Cassandra.py", >> line 1017, in recv_describe_keyspace >> >> =A0=A0=A0 (fname, mtype, rseqid) =3D self._iprot.readMessageBegin() >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/Thrift-0.2.0-py2.6-linux-x86_64.= egg/thrift/protocol/TBinaryProtocol.py", >> line 126, in readMessageBegin >> >> =A0=A0=A0 sz =3D self.readI32() >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/Thrift-0.2.0-py2.6-linux-x86_64.= egg/thrift/protocol/TBinaryProtocol.py", >> line 203, in readI32 >> >> =A0=A0=A0 buff =3D self.trans.readAll(4) >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/Thrift-0.2.0-py2.6-linux-x86_64.= egg/thrift/transport/TTransport.py", >> line 58, in readAll >> >> =A0=A0=A0 chunk =3D self.read(sz-have) >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/Thrift-0.2.0-py2.6-linux-x86_64.= egg/thrift/transport/TTransport.py", >> line 155, in read >> >> =A0=A0=A0 self.__rbuf =3D StringIO(self.__trans.read(max(sz, self.DEFAUL= T_BUFFER))) >> >> =A0 File >> "/usr/local/lib/python2.6/dist-packages/Thrift-0.2.0-py2.6-linux-x86_64.= egg/thrift/transport/TSocket.py", >> line 94, in read >> >> =A0=A0=A0 raise TTransportException(type=3DTTransportException.END_OF_FI= LE, >> message=3D'TSocket read 0 bytes') >> >> thrift.transport.TTransport.TTransportException: TSocket read 0 bytes >> >> >> >> I get similar errors for all queries. >> >> >> >> I cannot work out what is going wrong here. Can anyone help? (I need man= y of >> the functions only added in 0.7) >> >> >> >> Best Regards, >> >> Andrew >> >> >> >> >> >> This e-mail is confidential and may be privileged. It may be read, copie= d >> and used only by the intended recipient. No communication sent by e-mail= to >> or from Eutechnyx is intended to give rise to contractual or other legal >> liability, apart from liability which cannot be excluded under English l= aw. >> >> This email has been scanned for all known viruses by www.epagency.net. >> >> www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322 > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of Riptano, the source for professional Cassandra support > http://riptano.com > This email has been scanned for all known viruses by the Email Protection= Agency. > This e-mail is confidential and may be privileged. It may be read, copied= and used only by the intended recipient. No communication sent by e-mail t= o or from Eutechnyx is intended to give rise to contractual or other legal = liability, apart from liability which cannot be excluded under English law. > > This email has been scanned for all known viruses by the Email Protection= Agency. http://www.epagency.net > > > www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322 > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com