Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 10894 invoked from network); 18 May 2010 23:38:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 May 2010 23:38:05 -0000 Received: (qmail 10201 invoked by uid 500); 18 May 2010 23:38:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 10114 invoked by uid 500); 18 May 2010 23:38:04 -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 10106 invoked by uid 99); 18 May 2010 23:38:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 23:38:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sonnyheer@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 23:37:59 +0000 Received: by iwn42 with SMTP id 42so2327896iwn.31 for ; Tue, 18 May 2010 16:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=x/H798cbGQOQqYftOvjq0icqSkYdKWlcEi9SJmjkGYk=; b=XssiY8+SUTMI2q+0wmx+wclEjlRmCEUD3K1MxfrMLwPOd4mUuLdCsbrtHlYEcI6v1f vacJX5Uj44XeOXZZ1RuyRvgEYfYfgb7+228nWGDAj1t4E+vTtCd4R/UhsSryyclTySI/ jYmN+Dqe4TcBZSYv9l2psPNQlRfHti0Uk4RRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=noLHMheNP/+7GDpeB4SU58xq37TGPUx6jWu/iTU6dNm+tGps+eDX/kcuM72Cnn7WXF yITSw2C1moJCupbS/50x/TrQZXu4xNPOfNghaa48d2eK9yYq1U2nNG0DAlEmEjAN5C+U C8+sv326k5Obk2e06ideEWhu1zKK6DwxWfcTk= MIME-Version: 1.0 Received: by 10.231.149.12 with SMTP id r12mr2631465ibv.57.1274225857825; Tue, 18 May 2010 16:37:37 -0700 (PDT) Received: by 10.231.35.3 with HTTP; Tue, 18 May 2010 16:37:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 May 2010 16:37:37 -0700 Message-ID: Subject: Re: Timeouts running batch_mutate From: Sonny Heer To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yeah there are many writes happening at the same time to any given cass nod= e. e.g. assume 10 machines, all running hadoop and cassandra. The hadoop nodes are randomly picking a cassandra node and writing directly using the batch mutate. After increasing the timeout even more, i don't get that exception anymore. But now getting UnavailableException. The wiki states this happens when all the replicas required could be created and/or read. How do we resolve this problem? the write consistency is one. thanks On Sat, May 15, 2010 at 8:02 AM, Jonathan Ellis wrote: > rpctimeout should be sufficient > > you can turn on debug logging to see how long it's actually taking the > destination node to do the write (or look at cfstats, if no other > writes are going on) > > On Fri, May 14, 2010 at 11:55 AM, Sonny Heer wrote: >> Hey, >> >> I'm running a map/reduce job, reading from HDFS directory, and >> reducing to Cassandra using the batch_mutate method. >> >> The reducer builds the list of rowmutations for a single row, and >> calls batch_mutate at the end. =A0As I move to a larger dataset, i'm >> seeing the following exception: >> >> Caused by: TimedOutException() >> =A0 =A0 =A0 =A0at org.apache.cassandra.thrift.Cassandra$batch_mutate_res= ult.read(Cassandra.java:15361) >> =A0 =A0 =A0 =A0at org.apache.cassandra.thrift.Cassandra$Client.recv_batc= h_mutate(Cassandra.java:796) >> =A0 =A0 =A0 =A0at org.apache.cassandra.thrift.Cassandra$Client.batch_mut= ate(Cassandra.java:772) >> >> I changed the RpcTimeoutInMillis to 60 seconds with no changes. =A0What >> configuration changes should i make when doing intensive write >> operations using batch mutate? >> > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of Riptano, the source for professional Cassandra support > http://riptano.com >