Re: need help with triggers

2013-10-28 Thread kaveh minooie
I know that, but in all the example that I have seen online, they are getting an object of actuall 'ColumnFamily'. I was wondering why I am getting a UsortedClumns instead of ColumnFamily. and thanks for pointing out column iterator to me. that is gonna be usefull ;) On 10/28/2013 01:28 PM,

Re: need help with triggers

2013-10-28 Thread Jonathan Ellis
UnsortedColumns is a subclass of CF that only supports iterating through the cells, not random access. On Mon, Oct 28, 2013 at 2:36 PM, kaveh minooie wrote: > Hi > > I am not sure if, stricly speaking, this is a dev list issue, but i figured > I would probably have a better chance here than user

need help with triggers

2013-10-28 Thread kaveh minooie
Hi I am not sure if, stricly speaking, this is a dev list issue, but i figured I would probably have a better chance here than user list. I am using cassandra 2.0.1 and I am trying to write a trigger, but I am having an issue. in the augment function: public Collection augment(ByteBuffer key

Re: Authentication in cassandra binary protocol v2

2013-10-28 Thread Mathieu D'Amours
I think figured it out wrong initially. I thought AUTH_CHALLENGE was the message the server sends right after STARTUP. If I understand correctly a server configured with the PasswordAuthenticator is going to expect this flow: C -> [STARTUP] S -> [AUTHENTICATE] "PasswordAuthenticator" C -> [AUTH_R

Re: Authentication in cassandra binary protocol v2

2013-10-28 Thread Sylvain Lebresne
What information are you looking for? As the comment says, the details are authenticaticator specific. So you were right to look into PasswordAuthenticator in particular, and to be more precise you'll want to look at PasswordAuthenticator.PlainTextSaslAuthenticator.evaluateResponse() for that that

Re: Implementing a driver for cassandra native protocol v2

2013-10-28 Thread Sylvain Lebresne
Yes (I fixed both in fact). On Mon, Oct 28, 2013 at 7:10 PM, Mathieu D'Amours wrote: > Great, then I guess the same issue applies for [4.2.5.2. Rows]. > > Le Oct 28, 2013 à 10:17 AM, Sylvain Lebresne a > écrit : > > > On Sat, Oct 26, 2013 at 8:07 PM, Mathieu D'Amours >wrote: > > > >> Hello, >

Authentication in cassandra binary protocol v2

2013-10-28 Thread Mathieu D'Amours
Hello, I stumbled upon this description in the binary protocol specs [4.2.7. AUTH_CHALLENGE]: > The body of this message is a single [bytes] token. The details of what this > token contains (and when it can be null/empty, if ever) depends on the actual > authenticator used. I looked in C* buil

Re: Implementing a driver for cassandra native protocol v2

2013-10-28 Thread Mathieu D'Amours
Great, then I guess the same issue applies for [4.2.5.2. Rows]. Le Oct 28, 2013 à 10:17 AM, Sylvain Lebresne a écrit : > On Sat, Oct 26, 2013 at 8:07 PM, Mathieu D'Amours wrote: > >> Hello, >> >> I'm currently implementing an Erlang driver for Cassandra's binary >> protocol v2. Most of it is s

Re: Implementing a driver for cassandra native protocol v2

2013-10-28 Thread Sylvain Lebresne
On Sat, Oct 26, 2013 at 8:07 PM, Mathieu D'Amours wrote: > Hello, > > I'm currently implementing an Erlang driver for Cassandra's binary > protocol v2. Most of it is straightforward, but I came across this part in > [4.1.4. QUERY]: > > > is a [byte] whose bits define the options for this query an

[VOTE SUCCESS] Release Apache Cassandra 2.0.2 (Strike 2)

2013-10-28 Thread Sylvain Lebresne
Including my own vote, I count 4 binding +1, the vote passes. I'll get the artifacts published. On Thu, Oct 24, 2013 at 4:11 PM, Brandon Williams wrote: > +1 > > > On Thu, Oct 24, 2013 at 3:01 AM, Sylvain Lebresne >wrote: > > > Tracing has been fixed and a few bonus bug have been fixed since t