Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 47053 invoked from network); 25 Oct 2010 18:00:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 18:00:15 -0000 Received: (qmail 48133 invoked by uid 500); 25 Oct 2010 18:00:12 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 48092 invoked by uid 500); 25 Oct 2010 18:00:12 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 48084 invoked by uid 99); 25 Oct 2010 18:00:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 18:00:12 +0000 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 18:00:05 +0000 Received: by gya6 with SMTP id 6so2511081gya.31 for ; Mon, 25 Oct 2010 10:59:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.190.16 with SMTP id n16mr2519174anf.173.1288029583502; Mon, 25 Oct 2010 10:59:43 -0700 (PDT) Received: by 10.101.39.3 with HTTP; Mon, 25 Oct 2010 10:59:43 -0700 (PDT) Date: Mon, 25 Oct 2010 10:59:43 -0700 Message-ID: Subject: batch_mutate in 0.7 From: Chris Oei To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e644c72cc8ecfa049374c16f X-Virus-Checked: Checked by ClamAV on apache.org --0016e644c72cc8ecfa049374c16f Content-Type: text/plain; charset=ISO-8859-1 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 --0016e644c72cc8ecfa049374c16f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So, I'm a bit puzzled about how to change my old 0.6 code to 0.7.
<= br>
In 0.6, I used:

=A0=A0client.batch_mutate(keySpace, mutati= onMap, ConsistencyLevel.ONE);

But in 0.7, batch_mutate no longer has a keyspace= argument, so I used:

=A0=A0client.batch_mutate(mutationMap, Consis= tencyLevel.ONE);

Not surprisingly, I got an error:

=A0=A0Inval= idRequestException(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
--0016e644c72cc8ecfa049374c16f--