Created
August 31, 2009 23:37
-
-
Save jamesgolick/178778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'cassandra' | |
t = Cassandra.new "Twitter" | |
10000.times do | |
t.insert :UserRelationships, "5", {"statuses" => {Cassandra::UUID.new => "1234"}} | |
end | |
# make sure to ctrl-c out of this before it finishes | |
t.get :UserRelationships, "5", "statuses", :count => 100 | |
>> t.get :UserRelationships, "5", "statuses", :count => 10000 | |
Thrift::ProtocolException: No version identifier, old protocol client? | |
from /Library/Ruby/Gems/1.8/gems/thrift-0.1.0/lib/thrift/protocol/binary_protocol.rb:122:in `read_message_begin' | |
from /Library/Ruby/Gems/1.8/gems/thrift-0.1.0/lib/thrift/client.rb:45:in `receive_message' | |
from /Library/Ruby/Gems/1.8/gems/cassandra-0.5.5/lib/../vendor/gen-rb/cassandra.rb:25:in `recv_get_slice' | |
from /Library/Ruby/Gems/1.8/gems/cassandra-0.5.5/lib/../vendor/gen-rb/cassandra.rb:17:in `get_slice' | |
from /Library/Ruby/Gems/1.8/gems/cassandra-0.5.5/lib/cassandra/safe_client.rb:11:in `send' | |
from /Library/Ruby/Gems/1.8/gems/cassandra-0.5.5/lib/cassandra/safe_client.rb:11:in `method_missing' | |
from /Library/Ruby/Gems/1.8/gems/cassandra-0.5.5/lib/cassandra/protocol.rb:61:in `_get' | |
from /Library/Ruby/Gems/1.8/gems/cassandra-0.5.5/lib/cassandra/cassandra.rb:176:in `get' | |
from (irb):32 | |
from :0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment