Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 90192 invoked from network); 23 May 2010 03:11:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 May 2010 03:11:40 -0000 Received: (qmail 82544 invoked by uid 500); 23 May 2010 03:11:39 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 82399 invoked by uid 500); 23 May 2010 03:11:39 -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 82391 invoked by uid 99); 23 May 2010 03:11:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 May 2010 03:11:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qihjun@gmail.com designates 209.85.221.192 as permitted sender) Received: from [209.85.221.192] (HELO mail-qy0-f192.google.com) (209.85.221.192) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 May 2010 03:11:32 +0000 Received: by qyk30 with SMTP id 30so3933714qyk.16 for ; Sat, 22 May 2010 20:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=W3cqQ1jVEUdg1uKccu7rjtrIrW6iB4rZ2nT/NcTPLpg=; b=ijclpH44inIXlAmYQYridqI4wkOyIpewn7llfkqWhFhWw/ZoDmnmmwEbGUaabEQ3/m GkusLzod1do6d9Lw7FDptdufPIgSFECkCoJFgu6LJ4h0cl8FNmVwpD4nZqDih4BvuO7k mrA7xWPhvyeL56zHXucp4FPsWfnPANkVEVv3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=FgBAEus9z3hnlQSHm8NDJxefv3AgxJJ6Yh3nj3UaajdJBrhOAFH9v1uV/DPdzc1TYD +s0FhF1TIA8Q3sVZiD/TCTlUKSd1KSsd35+TgETqINh3hd4PPt7pJ1opulTuY6s4jsgX wKCEfmnSVNCdwDPUpwsq7DzzYuZ/kxepGRlBY= Received: by 10.224.26.193 with SMTP id f1mr158284qac.83.1274584272092; Sat, 22 May 2010 20:11:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.99.193 with HTTP; Sat, 22 May 2010 20:10:52 -0700 (PDT) From: huajun qi Date: Sun, 23 May 2010 11:10:52 +0800 Message-ID: Subject: batch_mutate To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=00c09f8a4da8c6400604873a46d1 --00c09f8a4da8c6400604873a46d1 Content-Type: text/plain; charset=ISO-8859-1 How to use batch_mutate method in Cassandra Thrift API. I do it below, but fails: sc=SuperColumn(1,cs) cosc=ColumnOrSuperColumn(super_column=sc) m=Mutation(column_or_supercolumn=cosc) ml=[] ml.append(m) client.batch_mutate(keyspace,{"kw_archive_baidu":list(ml)},ConsistencyLevel.ONE); what's the problem? -- Location: --00c09f8a4da8c6400604873a46d1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
How to use=A0batch_mutate method in=A0=A0= Cassandra Thrift API. I do it below, but fails:


sc=3DSuperColumn(1,cs)
= =A0=A0 =A0 =A0 =A0
=A0=A0 =A0 =A0 =A0cosc=3DColumnOrSuperColumn(s= uper_column=3Dsc)
=A0=A0 =A0 =A0 =A0
=A0=A0 =A0 =A0 =A0= m=3DMutation(column_or_supercolumn=3Dcosc)
=A0=A0 =A0 =A0 =A0
=A0=A0 =A0 =A0 =A0ml=3D[]
=A0= =A0 =A0 =A0 =A0
=A0=A0 =A0 =A0 =A0ml.append(m)
=A0=A0 = =A0 =A0 =A0
=A0=A0 =A0 =A0 =A0client.batch_mutate(keyspace,{"= ;kw_archive_baidu":list(ml)},ConsistencyLevel.ONE); =A0=A0

what's the problem?

--
Lo= cation:
--00c09f8a4da8c6400604873a46d1--