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

Reply via email to