incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: batch_mutate in 0.7
Date Mon, 25 Oct 2010 18:20:44 GMT
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.oei@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

Mime
View raw message