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

Cassandra 0.7 API does not work with thrift 0.2 #56

Closed
jpartogi opened this issue Dec 7, 2010 · 1 comment
Closed

Cassandra 0.7 API does not work with thrift 0.2 #56

jpartogi opened this issue Dec 7, 2010 · 1 comment

Comments

@jpartogi
Copy link

jpartogi commented Dec 7, 2010

I pull out fauna/cassandra gem 0.10.0 from github.

I then tried to get a value from cassandra as such.

irb(main):002:0> require 'cassandra/0.7'
=> true
irb(main):003:0> client = Cassandra.new('Keyspace1', '127.0.0.1:9160')
=> #<Cassandra:70286805872140, @keyspace="Keyspace1", @Schema={}, @servers=["127.0.0.1:9160"]>
irb(main):004:0> client.insert(:Standard1, "5", {'screen_name' => "buttonscat"})
=> nil
irb(main):006:0> client.get(:Standard1, "5", 'screen_name')
NoMethodError: undefined method multiget' for #<ThriftClient:0x7fd9d82e5270> from /home/jpartogi/.rvm/gems/ruby-1.8.7-p302/gems/cassandra-0.10.0/lib/cassandra/0.7/protocol.rb:53:in_multiget'
from /home/jpartogi/.rvm/gems/ruby-1.8.7-p302/gems/cassandra-0.10.0/lib/cassandra/cassandra.rb:198:in multi_get' from /home/jpartogi/.rvm/gems/ruby-1.8.7-p302/gems/cassandra-0.10.0/lib/cassandra/cassandra.rb:189:inget'
from (irb):6
from :0
irb(main):007:0>

It turns out that the gem is still relying on thrift < 0.2.5 as can be seen on cassandra.rb.

@ryanking
Copy link
Contributor

ryanking commented Dec 8, 2010

upgraded to 0.9.0 to use thrift 0.5.0

This issue was closed.
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

2 participants