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 folder

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 https://github.com/datastax/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

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 mishra.v...@gmail.comwrote: Hi, I am looking for some sort documentation around usage for CQL binary protocol. Basically i need some documentation

Re: CQL binary protocol

2013-01-25 Thread Vivek Mishra
, 2013 at 10:15 AM, Vivek Mishra mishra.v...@gmail.comwrote: 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 mishra.v...@gmail.comwrote: Hi, I am looking for some sort documentation around usage for CQL binary protocol. Basically i need some documentation about

Re: CQL binary protocol

2013-01-25 Thread Vivek Mishra
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

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 Sylvain Lebresne
On Fri, Jan 25, 2013 at 11:24 AM, Vivek Mishra mishra.v...@gmail.comwrote: Any documentation for this? For what? For the code? Everyone knows the code is it's own documentation! -- Sylvain

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 sylv...@datastax.comwrote: On Fri, Jan 25, 2013 at 11:24 AM, Vivek Mishra mishra.v...@gmail.comwrote: Any documentation for this? For what? For the code?

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 mishra.v...@gmail.comwrote: I have enabled *start_native_transport: true* in cassandra.yaml and then tried to connect from

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 sylv...@datastax.comwrote: cqlsh does not use the native protocol (It may and

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Sylvain Lebresne
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 mishra.v...@gmail.comwrote: Is this a valid assumption that cassandra-cli will not work, if Cassandra server is getting started by enabling CQL binary

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Vivek Mishra
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 mishra.v...@gmail.com 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

Re: Cassandra-cli : with CQL binary protocol

2013-01-25 Thread Vivek Mishra
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 mishra.v...@gmail.comwrote: Is this a valid assumption that cassandra-cli will not work, if Cassandra server is getting started by enabling CQL binary protocol

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