Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 91893 invoked from network); 16 May 2010 19:53:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 May 2010 19:53:03 -0000 Received: (qmail 36036 invoked by uid 500); 16 May 2010 19:53:03 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 36021 invoked by uid 500); 16 May 2010 19:53:03 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 36013 invoked by uid 99); 16 May 2010 19:53:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 May 2010 19:53:03 +0000 X-ASF-Spam-Status: No, hits=-1432.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 May 2010 19:53:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4GJqgpN007973 for ; Sun, 16 May 2010 19:52:42 GMT Message-ID: <14386873.73611274039562002.JavaMail.jira@thor> Date: Sun, 16 May 2010 15:52:42 -0400 (EDT) From: "Joost Ouwerkerk (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-1096) Sequential splits causing unbalanced MapReduce load In-Reply-To: <16001440.73591274039442452.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joost Ouwerkerk updated CASSANDRA-1096: --------------------------------------- Attachment: CASSANDRA-1096.patch I added Collections.shuffle(splits) before returning the splits in getSplits(). As a result, the load is much better distributed, throughput was increased (about 3X in my case) and TimedOutExceptions were all but eliminated. > Sequential splits causing unbalanced MapReduce load > --------------------------------------------------- > > Key: CASSANDRA-1096 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1096 > Project: Cassandra > Issue Type: Bug > Components: Hadoop > Affects Versions: 0.6 > Reporter: Joost Ouwerkerk > Attachments: CASSANDRA-1096.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > Since CassandraInputFormat returns an ordered list of splits, when there are many splits (e.g. hundreds or more) the load on cassandra is horribly unbalanced. e.g. if I have 30 tasks processing 600 splits, then the rows for the first 30 splits are all located on the same one or two nodes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.