Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 17087 invoked from network); 9 Nov 2010 17:55:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 17:55:31 -0000 Received: (qmail 97164 invoked by uid 500); 9 Nov 2010 17:56:00 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97137 invoked by uid 500); 9 Nov 2010 17:56:00 -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 97129 invoked by uid 99); 9 Nov 2010 17:56:00 -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 17:56:00 +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 74.125.83.44 as permitted sender) Received: from [74.125.83.44] (HELO mail-gw0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 17:55:55 +0000 Received: by gwb11 with SMTP id 11so10142gwb.31 for ; Tue, 09 Nov 2010 09:55:34 -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=kwwpiBy9ihpTwzf35nA5frOFVm5vFofh8FKNytnq+kE=; b=clUeTYzbQ0T7RpWDUJleO56ONZ1VxtmGKOYcnb//2xQm6dVtkhdtvP/XQNyMEdnU9j m3W4epSKZzxAYjmNmrjlundJuLIf7yr4XjaNsmz7a5vjb1nICQC3BES5f0gv1IetW2Up fkbT9dN/Tc9nt0VpXiEJv9MgPSxWPoFcLdVg4= 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=baZ05kJwKi/qHvAxOMetelev/aHBshiCfVvtHeHOh0Jx2CBURVQLMQyZnZVmDm/Yj0 hRHyp/rnQD/GkcMNaDNU/5GEWUBumT+X0N6ZV1L+fuTTBOkF/NMNz1yC0avBX8QKVjC7 D17Wnnq+aLlbgATPorxN/UQR+DfQgNnvxgS2E= MIME-Version: 1.0 Received: by 10.216.49.145 with SMTP id x17mr7213257web.55.1289325332768; Tue, 09 Nov 2010 09:55:32 -0800 (PST) Received: by 10.216.18.21 with HTTP; Tue, 9 Nov 2010 09:55:32 -0800 (PST) In-Reply-To: <9F83B51B5E3935419B14FC2D1436FC0947EF59CF@xchange.eutechnyx.com> References: <9F83B51B5E3935419B14FC2D1436FC0947EF59CF@xchange.eutechnyx.com> Date: Tue, 9 Nov 2010 11:55:32 -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 You're using an unframed transport to talk to a framed server, or vice vers= a. On Tue, Nov 9, 2010 at 11:47 AM, Dr. Andrew Perella wro= te: > 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', 'Cassan= dra-remote') > > =A0 File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, i= n > 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.e= gg/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.e= gg/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.e= gg/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.e= gg/thrift/transport/TTransport.py", > line 155, in read > > =A0=A0=A0 self.__rbuf =3D StringIO(self.__trans.read(max(sz, self.DEFAULT= _BUFFER))) > > =A0 File > "/usr/local/lib/python2.6/dist-packages/Thrift-0.2.0-py2.6-linux-x86_64.e= gg/thrift/transport/TSocket.py", > line 94, in read > > =A0=A0=A0 raise TTransportException(type=3DTTransportException.END_OF_FIL= E, > 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 many= of > the functions only added in 0.7) > > > > Best Regards, > > Andrew > > > > > > 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 = to > or from Eutechnyx is intended to give rise to contractual or other legal > liability, apart from liability which cannot be excluded under English la= w. > > This email has been scanned for all known viruses by 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