PHP CQL binary protocol client

2013-11-26 Thread Robert McFrazier
I have just released the initial commit for a PHP CQL binary protocol client. It is not completed yet, I'm currently working on implementing compression, collections, and prepared queries. There is an example of how to connect to a Cassandra server and issue a query, in the examples f

Re: CQL binary protocol

2013-02-01 Thread aaron morton
The spec for the protocol is here https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=doc/native_protocol.spec;hb=refs/heads/cassandra-1.2 Cheers - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 1/02/2013,

Re: CQL binary protocol

2013-01-31 Thread Gabriel Ciuloaica
Hi, You may take a look to java-driver project. It has an implementation for connection pool. Cheers, Gabi On 1/31/13 6:48 PM, Vivek Mishra wrote: Hi, Any connection pool API available for cassandra transport Client(org.apache.cassandra.transport.C

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Sylvain Lebresne
oth for obvious reasons). >> Obviously, if you point cassandra-cli to the port used by the binary >> protocol, that won't work either. >> >> -- >> Sylvain >> >> >> On Fri, Jan 25, 2013 at 11:53 AM, Vivek Mishra wrote: >> >>

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Vivek Mishra
or obvious reasons). >> Obviously, if you point cassandra-cli to the port used by the binary >> protocol, that won't work either. >> >> -- >> Sylvain >> >> >> On Fri, Jan 25, 2013 at 11:53 AM, Vivek Mishra wrote: >> >>> Is this a valid assumption that cassandra-cli will not work, if >>> Cassandra server is getting started by enabling CQL binary protocol? >>> >>> -Vivek >>> >> >> >

Re: CQL binary protocol

2013-01-25 Thread Vivek Mishra
For Beginners on any new open source, it is always good to have atleast some sort of comments! -Vivek On Fri, Jan 25, 2013 at 4:30 PM, Vivek Mishra wrote: > OK.I guess that's why there is a need of class/method level java comments. > > -Vivek > > > On Fri, Jan 25, 2013 at 4:28 PM, Sylvain Lebre

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Vivek Mishra
ns). > Obviously, if you point cassandra-cli to the port used by the binary > protocol, that won't work either. > > -- > Sylvain > > > On Fri, Jan 25, 2013 at 11:53 AM, Vivek Mishra wrote: > >> Is this a valid assumption that cassandra-cli will not work, if Cas

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Sylvain Lebresne
f you point cassandra-cli to the port used by the binary protocol, that won't work either. -- Sylvain On Fri, Jan 25, 2013 at 11:53 AM, Vivek Mishra wrote: > Is this a valid assumption that cassandra-cli will not work, if Cassandra > server is getting started by enabling CQL binary protocol? > > -Vivek >

Re: CQL binary protocol error

2013-01-25 Thread Vivek Mishra
Then only possible way is via creating own java program to connect/execute? And then restart again in Thrift mode to connect via cqlsh/cassandra-cli ? -Vivek On Fri, Jan 25, 2013 at 4:30 PM, Sylvain Lebresne wrote: > cqlsh does not use the native protocol (It may and hopefully will someday > but

Re: CQL binary protocol error

2013-01-25 Thread Sylvain Lebresne
cqlsh does not use the native protocol (It may and hopefully will someday but it's not the case right now). -- Sylvain On Fri, Jan 25, 2013 at 11:49 AM, Vivek Mishra wrote: > I have enabled *start_native_transport: true* in cassandra.yaml and then > tried to connect from cqlsh as: > > */home/v

Re: CQL binary protocol

2013-01-25 Thread Vivek Mishra
OK.I guess that's why there is a need of class/method level java comments. -Vivek On Fri, Jan 25, 2013 at 4:28 PM, Sylvain Lebresne wrote: > On Fri, Jan 25, 2013 at 11:24 AM, Vivek Mishra wrote: > >> Any documentation for this? > > > For what? For the code? Everyone knows the code is it's own do

Re: CQL binary protocol

2013-01-25 Thread Sylvain Lebresne
On Fri, Jan 25, 2013 at 11:24 AM, Vivek Mishra wrote: > Any documentation for this? For what? For the code? Everyone knows the code is it's own documentation! -- Sylvain

Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Vivek Mishra
Is this a valid assumption that cassandra-cli will not work, if Cassandra server is getting started by enabling CQL binary protocol? -Vivek

Re: CQL binary protocol

2013-01-25 Thread Vivek Mishra
ive_protocol.spec >>> >>> >>> On Fri, Jan 25, 2013 at 10:15 AM, Vivek Mishra wrote: >>> >>>> Hi, >>>> I am looking for some sort documentation around usage for CQL binary >>>> protocol. Basically i need some documentation about usage of "cassandra >>>> native transport" and it's usage. >>>> >>>> >>>> -Vivek >>>> >>> >>> >> >

Re: CQL binary protocol

2013-01-25 Thread Sylvain Lebresne
: > >> >> https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=doc/native_protocol.spec >> >> >> On Fri, Jan 25, 2013 at 10:15 AM, Vivek Mishra wrote: >> >>> Hi, >>> I am looking for some sort documentation around usage for C

Re: CQL binary protocol

2013-01-25 Thread Vivek Mishra
ri, Jan 25, 2013 at 10:15 AM, Vivek Mishra wrote: > >> Hi, >> I am looking for some sort documentation around usage for CQL binary >> protocol. Basically i need some documentation about usage of "cassandra >> native transport" and it's usage. >> >> >> -Vivek >> > >

Re: CQL binary protocol

2013-01-25 Thread Sylvain Lebresne
https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=doc/native_protocol.spec On Fri, Jan 25, 2013 at 10:15 AM, Vivek Mishra wrote: > Hi, > I am looking for some sort documentation around usage for CQL binary > protocol. Basically i need some documentation about

Invalid streamId in cql binary protocol when using invalid CL

2013-01-15 Thread Pierre Chalamet
Hello, Executing a query using an invalid CL with binary protocol leads to an invalid response streamId (always 0). I've created following issue then: https://issues.apache.org/jira/browse/CASSANDRA-5164 Thanks, - Pierre