cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Oei <>
Subject batch_mutate in 0.7
Date Mon, 25 Oct 2010 17:59:43 GMT
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?


View raw message