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 B4BC6893E for ; Sun, 28 Aug 2011 13:31:49 +0000 (UTC) Received: (qmail 50530 invoked by uid 500); 28 Aug 2011 13:31:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 50477 invoked by uid 500); 28 Aug 2011 13:31:46 -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 50469 invoked by uid 99); 28 Aug 2011 13:31:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2011 13:31:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.207.44.48] (HELO postrelay-1.pdf.com) (216.207.44.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2011 13:31:41 +0000 Received: from domo-sjc-001.pdf.com (domo-sjc-001.pdf.com [10.10.9.180]) by postrelay-1.pdf.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id p7SDT39r021046 for ; Sun, 28 Aug 2011 06:29:03 -0700 Received: from [127.0.0.1] ([10.2.10.89]) by domo-sjc-001.pdf.com (8.13.8/8.13.8) with ESMTP id p7SDVJDT014409 for ; Sun, 28 Aug 2011 06:31:20 -0700 Message-ID: <4E5A433C.3000009@pdf.com> Date: Sun, 28 Aug 2011 06:31:40 -0700 From: Alaa Zubaidi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.20) Gecko/20110804 Lightning/1.0b2 Thunderbird/3.1.12 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Could Not connect to cassandra-cli on windows References: <4CD8A45D.10803@pdf.com> <4E4C161D.3050203@pdf.com> <78C79B4D-B27B-4005-948F-A4831F6649EC@thelastpickle.com> <4E4C8F1E.3060809@pdf.com> <4E5442F8.7010509@pdf.com> <8CE0FD87-B105-4275-879B-52AAEA18FF31@thelastpickle.com> <4E551007.6040906@pdf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Aaron, I can connect with node tool and CLI with no errors, its only when I have multiple connection (threads) through the C# application.. Alaa On 8/25/2011 2:42 PM, aaron morton wrote: > With a fresh cassandra install and a pre built client what error do you get ? > > Can you connect with node tool ? If not what error ? > > What about the cassandra CLI ? > > > ----------------- > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 25/08/2011, at 2:51 AM, Alaa Zubaidi wrote: > >> Hi Aaron, >> I cannot at this point of time.. >> >> Thanks for your help.. >> Alaa >> >> On 8/24/2011 2:30 AM, aaron morton wrote: >>> Not off the top of my head. >>> >>> Can you get 0.7.8 running with a pre-packaged client ? >>> >>> Cheers >>> >>> ----------------- >>> Aaron Morton >>> Freelance Cassandra Developer >>> @aaronmorton >>> http://www.thelastpickle.com >>> >>> On 24/08/2011, at 12:16 PM, Alaa Zubaidi wrote: >>> >>>> Hi Aaron, >>>> We are using Thrift 5.. >>>> TSocket _tr = new TSocket(server.Host, server.Port);//"localhost", 9160); >>>> _transport = new TFramedTransport(_tr); >>>> _protocol = new TBinaryProtocol(_transport); >>>> _client = new Cassandra.Client(_protocol); >>>> >>>> Do you have any clue on what could cause the first exception? >>>> >>>> Thanks and Regards. >>>> Alaa >>>> >>>> On 8/18/2011 3:59 AM, aaron morton wrote: >>>>> IIRC cassandra 0.7 needs thrift 0.5, are you using that version ? >>>>> >>>>> Perhaps try grabbing the cassandra 0.7 version for one of the pre built clients (pycassa, hector etc) to check things work and then check you are using the same thrift version. >>>>> >>>>> Cheers >>>>> >>>>> ----------------- >>>>> Aaron Morton >>>>> Freelance Cassandra Developer >>>>> @aaronmorton >>>>> http://www.thelastpickle.com >>>>> >>>>> On 18/08/2011, at 4:03 PM, Alaa Zubaidi wrote: >>>>> >>>>>> Hi Aaron, >>>>>> Thanks for the reply. >>>>>> I am running 0.7.4 and NO client. >>>>>> The error was reported by the application where it fails to connect and it happens that 2 threads are trying to connect at the same time. and when I checked the cassandra log I found these errors?? >>>>>> >>>>>> Thanks >>>>>> Alaa >>>>>> >>>>>> On 8/17/2011 4:29 PM, aaron morton wrote: >>>>>>> What client, what version, what version of cassandra are you using ? >>>>>>> >>>>>>> Looks like you are connecting with an old version of thrift, like the message says. Check the client you are using was made for cassandra 0.8. >>>>>>> >>>>>>> Cheers >>>>>>> >>>>>>> ----------------- >>>>>>> Aaron Morton >>>>>>> Freelance Cassandra Developer >>>>>>> @aaronmorton >>>>>>> http://www.thelastpickle.com >>>>>>> >>>>>>> On 18/08/2011, at 7:27 AM, Alaa Zubaidi wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I se this error while the application tries to connect to cassandra at the same time from 2 different threads: any clues: >>>>>>>> >>>>>>>> ERROR [pool-1-thread-13] 2011-07-29 06:46:45,718 CustomTThreadPoolServer.java (line 222) Error occurred during processing of message. >>>>>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111 >>>>>>>> at java.lang.String.checkBounds(String.java:397) >>>>>>>> at java.lang.String.(String.java:442) >>>>>>>> at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:339) >>>>>>>> at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:210) >>>>>>>> at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543) >>>>>>>> at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206) >>>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>>>>>> at java.lang.Thread.run(Thread.java:662) >>>>>>>> ERROR [pool-1-thread-11] 2011-07-29 06:53:21,921 CustomTThreadPoolServer.java (line 218) Thrift error occurred during processing of message. >>>>>>>> org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client? >>>>>>>> at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213) >>>>>>>> at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2543) >>>>>>>> at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:206) >>>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>>>>>> at java.lang.Thread.run(Thread.java:662) >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Alaa >>>>>>>> >>>>>> -- >>>>>> Alaa Zubaidi >>>>>> PDF Solutions, Inc. >>>>>> 333 West San Carlos Street, Suite 700 >>>>>> San Jose, CA 95110 USA >>>>>> Tel: 408-283-5639 (or 408-280-7900 x5639) >>>>>> fax: 408-938-6479 >>>>>> email: alaa.zubaidi@pdf.com >>>>>> >>>>>> >>>> -- >>>> Alaa Zubaidi >>>> PDF Solutions, Inc. >>>> 333 West San Carlos Street, Suite 700 >>>> San Jose, CA 95110 USA >>>> Tel: 408-283-5639 (or 408-280-7900 x5639) >>>> fax: 408-938-6479 >>>> email: alaa.zubaidi@pdf.com >>>> >>>> >>> >> -- >> Alaa Zubaidi >> PDF Solutions, Inc. >> 333 West San Carlos Street, Suite 700 >> San Jose, CA 95110 USA >> Tel: 408-283-5639 (or 408-280-7900 x5639) >> fax: 408-938-6479 >> email: alaa.zubaidi@pdf.com >> >> > > -- Alaa Zubaidi PDF Solutions, Inc. 333 West San Carlos Street, Suite 700 San Jose, CA 95110 USA Tel: 408-283-5639 (or 408-280-7900 x5639) fax: 408-938-6479 email: alaa.zubaidi@pdf.com