Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DBC41163C for ; Thu, 31 Jul 2014 19:07:40 +0000 (UTC) Received: (qmail 66912 invoked by uid 500); 31 Jul 2014 19:07:38 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 66839 invoked by uid 500); 31 Jul 2014 19:07:38 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 66818 invoked by uid 99); 31 Jul 2014 19:07:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 19:07:37 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ndimiduk@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 19:07:35 +0000 Received: by mail-vc0-f173.google.com with SMTP id hy10so5008723vcb.18 for ; Thu, 31 Jul 2014 12:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ZCbqBxquhisjjLB5hQQnggZ4+cqIX7P9gIdz5X88kNE=; b=yEsYbFi0r5Fvh7PE729YWvbzZfeWY0lV4uqK7ioejd/07cujLL8V73FMy6sANyuo4W BsfbKU5Rhc7FzV7ZDc9+k6xec/4MFCaslxpfLV8BRpWAqabpSPa/yPgSVZvHCswZvxOf yOmHMcY7zshr9jWMpACRQvp26xd8HYrxzkp0uDLxAR7Fx+Qp4iWrVGknhpp18/hoLanq XU87EdV5yU7GVh+uZZ9Ea6mDNMvNaV1hrhRicQDbnqzBDICNRtSmydUg4PP0gMwUh4K0 azkTTH7QZ1WmxwOpeY3waH3MmS8vywiZxH/clHuLljtq1H8pAZRla1urpRZFKFI1NeI7 HRIg== X-Received: by 10.221.9.72 with SMTP id ov8mr277998vcb.27.1406833628799; Thu, 31 Jul 2014 12:07:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.18.237 with HTTP; Thu, 31 Jul 2014 12:06:48 -0700 (PDT) In-Reply-To: <1406820000591-4062141.post@n3.nabble.com> References: <1406820000591-4062141.post@n3.nabble.com> From: Nick Dimiduk Date: Thu, 31 Jul 2014 12:06:48 -0700 Message-ID: Subject: Re: Hbase Mapreduce API - Reduce to a file is not working properly. To: hbase-user Content-Type: multipart/alternative; boundary=089e01177721b3ed2904ff81fad4 X-Virus-Checked: Checked by ClamAV on apache.org --089e01177721b3ed2904ff81fad4 Content-Type: text/plain; charset=UTF-8 Hi Parkirat, I don't follow the reducer problem you're having. Can you post your code that configures the job? I assume you're using TableMapReduceUtil someplace. Your reducer is removing duplicate values? Sounds like you need to update it's logic to only emit a value once. Pastebin-ing your reducer code may be helpful as well. -n On Thu, Jul 31, 2014 at 8:20 AM, Parkirat wrote: > Hi All, > > I am using Mapreduce API to read Hbase Table, based on some scan operation > in mapper and putting the data to a file in reducer. > I am using Hbase Version "Version 0.94.5.23". > > *Problem:* > Now in my job, my mapper output a key as text and value as text, but my > reducer output key as text and value as nullwritable, but it seems *hbase > mapreduce api dont consider reducer*, and outputs both key and value as > text. > > Moreover if the same key comes twice, it goes to the file twice, even if my > reducer want to log it only once. > > Could anybody help me with this problem? > > Regards, > Parkirat Singh Bagga. > > > > -- > View this message in context: > http://apache-hbase.679495.n3.nabble.com/Hbase-Mapreduce-API-Reduce-to-a-file-is-not-working-properly-tp4062141.html > Sent from the HBase User mailing list archive at Nabble.com. > --089e01177721b3ed2904ff81fad4--