Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with stock cassandra 1.2.1 #10

Closed
wr0ngway opened this issue Feb 8, 2013 · 2 comments
Closed

Fails with stock cassandra 1.2.1 #10

wr0ngway opened this issue Feb 8, 2013 · 2 comments

Comments

@wr0ngway
Copy link

wr0ngway commented Feb 8, 2013

Running a cassandra 1.2.1 server locally, fully default configuration, get the following exception when I use cassanity:

[5] pry(main)> Cassanity::Client.new('127.0.0.1:9160')
CassandraCQL::Error::InvalidRequestException: Cannot execute/prepare CQL2 statement since the CQL has been set to CQL3(This might mean your client hasn't been upgraded correctly to use the new CQL3 methods introduced in Cassandra 1.2+).
from /Users/mconway/.rvm/gems/jruby-1.7.2/gems/cassandra-cql-1.1.5/lib/cassandra-cql/database.rb:101:in `execute_cql_query'

Does cassanity require CQL3? Any workarounds?

@jnunemaker
Copy link
Owner

Yep, this is a known issue. cassanity has two requirements right now.

  1. cql 3, though you could make your own cql 2 executor and argument generators to make this work
  2. cassandra-cql needs to be updated for cassandra 1.2 either by updating the thrift stuff or wrapping the new protocol

I'll make a note in the readme about this.

jnunemaker pushed a commit that referenced this issue Feb 9, 2013
@alindeman
Copy link
Collaborator

We have experimental support for cassandra >= 1.2 in master now 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants