You want the set_keyspace method. What language are you using? We don't recommend using raw Thrift unless there's no other option.
On Mon, Oct 25, 2010 at 12:59 PM, Chris Oei <chris....@nestria.com> wrote: > So, I'm a bit puzzled about how to change my old 0.6 code to 0.7. > In 0.6, I used: > client.batch_mutate(keySpace, mutationMap, ConsistencyLevel.ONE); > But in 0.7, batch_mutate no longer has a keyspace argument, so I used: > client.batch_mutate(mutationMap, ConsistencyLevel.ONE); > Not surprisingly, I got an error: > InvalidRequestException(why:You have not set a keyspace for this session) > Maybe I'm having Monday-morning brain-freeze, but I can't figure out how to > tell Cassandra which keyspace > to use. > Suggestions, anyone? > Thanks, > Chris -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com