cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Dusbabek <gdusba...@gmail.com>
Subject Re: batch_mutate in 0.7
Date Mon, 25 Oct 2010 18:12:29 GMT
client.set_keyspace()

On Mon, Oct 25, 2010 at 12:59, 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

Mime
View raw message