RE: avro + cassandra + ruby

2010-09-30 Thread Gabor Torok
I added a comment to an existing issue: https://issues.apache.org/jira/browse/AVRO-537 Thanks, --Gabor

RE: avro + cassandra + ruby

2010-09-30 Thread Gabor Torok
The ruby code creates a new http connection for each call to transceive. Here is what I changed to make it work: gabor$ diff /usr/local/lib/ruby/gems/1.8/gems/avro-1.4.0/lib/avro/ipc.rb ~/avro-trunk/lang/ruby/lib/avro/ipc.rb 518d517 < require "net/http" 525d523 < @conn = Net::HTTP.start

Re: avro + cassandra + ruby

2010-09-30 Thread Gabor Torok
I ran the python code like Gary suggested and it succeeded. (As an aside, it would be nice if I could run the python code for avro without having thrift installed.) Then I re-created my ruby example in python (essentially calling set_keyspace and then making a multiget_slice call) and it also s

Re: avro + cassandra + ruby

2010-09-30 Thread Gabor Torok
The server exception is: WARN 09:49:56,644 user error org.apache.cassandra.avro.KeyspaceNotDefinedException at org.apache.cassandra.avro.AvroValidation.validateKeyspace(AvroValidation.java:73) at org.apache.cassandra.avro.AvroValidation.validateColumnParent(AvroValidation.java:12

Re: avro + cassandra + ruby

2010-09-28 Thread Gabor Torok
Thanks, that made things better by about 30%. Unfortunately for me that's still unacceptable... :-( I feel like I'm doing something wrong with avro (see my original post). Was anyone able to make it work?

avro + cassandra + ruby

2010-09-28 Thread Gabor Torok
Hi, I'm attempting to use avro to talk to cassandra because the ruby thrift client's read performance is pretty bad (I measured 4x slower than java). However, I run into a problem when calling multiget_slice. The server gives a KeyspaceNotDefinedException because clientState.getKeyspace() retur