Return-Path: Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: (qmail 14664 invoked from network); 5 Nov 2010 18:35:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 18:35:24 -0000 Received: (qmail 35982 invoked by uid 500); 5 Nov 2010 18:35:55 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 35908 invoked by uid 500); 5 Nov 2010 18:35:55 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 35900 invoked by uid 99); 5 Nov 2010 18:35:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 18:35:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amp@opendns.com designates 67.215.68.163 as permitted sender) Received: from [67.215.68.163] (HELO mail.opendns.com) (67.215.68.163) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 18:35:49 +0000 Received: from Adams-Desktop.local ([67.215.69.42]) (authenticated bits=0) by mail.opendns.com (8.14.3/8.14.3/Debian-5) with ESMTP id oA5IZSGo007804 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 5 Nov 2010 18:35:28 GMT Message-ID: <4CD44E70.1000003@opendns.com> Date: Fri, 05 Nov 2010 11:35:28 -0700 From: Adam Phelps User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: mapreduce-user@hadoop.apache.org Subject: Re: Duplicated entries with map job reading from HBase References: <4CD35684.4020504@opendns.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit No, the system actually is much larger than two nodes. But the number of mappers used here tends to be fairly small (I suspect based on the HBase regions being accessed but usually more than two), I'll try turning off the combiner to see if that changes anything. Thanks - Adam On 11/5/10 9:23 AM, Niels Basjes wrote: > Hi, > > I don't know the answer (simply not enough information in your email) > but I'm willing to make a guess: > You are running on a system with two processing nodes? > If so then try removing the Combiner. The combiner is a performance > optimization and the whole processing should work without it. > Some times there is a design fault in the processing and the combiner > disrupts the processing. > > HTH > > Niels Basjes > > 2010/11/5 Adam Phelps > > > I've noticed an odd behavior with a map-reduce job I've written > which is reading data out of an HBase table. After a couple days of > poking at this I haven't been able to figure out the cause of the > problem, so I figured I'd ask on here. > > (For reference I'm running with the cdh3b2 release) > > The problem is that it seems that every line from the HBase table is > passed to the mappers twice, thus resulting in counts ending up as > exactly double what they should be. > > I set up the job like this: > > Scan scan = new Scan(); > scan.addFamily(Bytes.toBytes(scanFamily)); > > TableMapReduceUtil.initTableMapperJob(table, > scan, > mapper, > Text.class, > LongWritable.class, > job); > job.setCombinerClass(LongSumReducer.class); > > job.setReducerClass(reducer); > > I've set up counters in the mapper to verify what is happening, so > that I know for certain that the mapper is being called twice with > the same bit of data. I've also confirmed (using the hbase shell) > that each entry appears only once in the table. > > Is there a known bug along these lines? If not, does anyone have > any thoughts on what might be causing this or where I'd start > looking to diagnose? > > Thanks > - Adam > > > > > -- > Met vriendelijke groeten, > > Niels Basjes