Re: Insert LongType with ruby

2011-01-03 Thread Ryan King
On Sun, Jan 2, 2011 at 3:45 PM, vicent roca daniel sap...@gmail.com wrote: Hi guys, I need your help. I'm trying to insert a column name of type LongType using the ruby wrapper, but I can't get it working. What I'm trying is something like this:    app.insert(:Data, 'device1-cpu', { Time.now

Re: meaning of eventual consistency in Cassandra ?

2011-01-03 Thread Peter Schuller
What is the meaning of eventual consistency in Cassandra when nodes in a single cluster do not mantain the copies of same data but rather data is distributed among nodes. Since a single peice of data is recorded at a single place(node),Why wouldn't Cassandra return the recent value from that

Re: Insert LongType with ruby

2011-01-03 Thread vicent roca daniel
hi, no I'n not getting any exception. The value gets inserted withou problem. If I try to convert to string I get: Cassandra::Comparable::TypeError: Expected 2011-01-03 22:14:40 +0100 to cast to a Cassandra::Long (invalid bytecount) from

Re: Insert LongType with ruby

2011-01-03 Thread Ryan King
On Mon, Jan 3, 2011 at 1:15 PM, vicent roca daniel sap...@gmail.com wrote: hi, no I'n not getting any exception. Then what problem are you seeing? -ryan The value gets inserted withou problem. If I try to convert to string I get: Cassandra::Comparable::TypeError: Expected 2011-01-03

Re: Insert LongType with ruby

2011-01-03 Thread vicent roca daniel
The problem I think I have is that I think I'm not storing the correct value. If I do this (for example): app.insert(:NumData, 'device1-cpu', { Time.now + 1 minut = 10.to_s }) app.insert(:NumData, 'device1-cpu', { Time.now + 1 minu = 10.to_s }) app.insert(:NumData, 'device1-cpu', { Time.now + 1

How can I correct this Cassandra load imbalance?

2011-01-03 Thread ian douglas
Hi everyone, I've been lurking in the #cassandra IRC channel lately looking for help on this, but wanted to try the mailing list as well. We have 3 nodes, and last week it was suggested that I run 'nodetool move' to reset our token values on the 3 nodes because they were randomly assigned

Re: Does Cassandra run better on Amazon EC2 or Rackspace cloud servers?

2011-01-03 Thread Dave Viner
Since it's all pay-for-use, you could build your system on both, then do whatever stress testing you want. The cassandra part of your app should be unchanged between different cloud providers. Personally, I'm using EC2 and don't have any complaints. Dave Viner On Mon, Jan 3, 2011 at 3:49 PM,