Have you read NEWS? Framed mode is on by default in 0.7. On Thu, Oct 14, 2010 at 3:44 PM, Brayton Thompson <thomp...@grnoc.iu.edu> wrote: > Ok i made the changes, now im running into a thrift exception on > set_keyspace(). > > $VAR1 = bless( { > 'code' => 0, > 'message' => 'TSocket: Could not read 4 bytes from > xxx.xxx.xxx.xxx:9160' > }, 'Thrift::TException' ); > xxx.xxx.xxx.xxx is ip of the machine that the code is running on. > 9160 is open in iptables. I have 3 nodes who are all clustered happily > together to prove it. > any ideas? > On Oct 14, 2010, at 3:44 PM, Jesse McConnell wrote: > > you have to call set_keyspace on the connection now > cheers, > jesse > -- > jesse mcconnell > jesse.mcconn...@gmail.com > > > On Thu, Oct 14, 2010 at 14:41, Brayton Thompson <thomp...@grnoc.iu.edu> > wrote: >> >> Was there a change to the API in 0.7? >> example... >> from the api wikki >> >> insert >> >> >> void insert(string keyspace, string key, ColumnPath column_path, binary value, i64 timestamp, ConsistencyLevel consistency_level) >> >> Now from the thrift generated perl library for the 0.7 beta 2 download. >> sub insert{ >> my $self = shift; >> my $key = shift; >> my $column_parent = shift; >> my $column = shift; >> my $consistency_level = shift; >> $self->send_insert($key, $column_parent, $column, $consistency_level); >> $self->recv_insert(); >> } >> For those of you who don't use perl... >> my $self = shift; >> my $key = shift; >> my $column_parent = shift; >> my $column = shift; >> my $consistency_level = shift; >> these get the function arguments out in the order they are listed. The >> first argument (in this example the thing stored into $self) is a reference >> to the class object the method belongs to. So in our example keyspace goes >> into $key, key goes into $column_parent ... etc. >> This is not a huge issue, I can look at the module to determine the new >> ordering of arguments. However how can I run an insert if the keyspace is >> never supplied to the method? >> Thank you for your time. > >
-- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com