Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4F42D200C87 for ; Wed, 17 May 2017 15:28:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4DD53160BBA; Wed, 17 May 2017 13:28:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 935AE160BB5 for ; Wed, 17 May 2017 15:28:42 +0200 (CEST) Received: (qmail 58506 invoked by uid 500); 17 May 2017 13:28:41 -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 58492 invoked by uid 99); 17 May 2017 13:28:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2017 13:28:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9E3891B073F for ; Wed, 17 May 2017 13:28:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.379 X-Spam-Level: *** X-Spam-Status: No, score=3.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 11_Tfiey2HBu for ; Wed, 17 May 2017 13:28:39 +0000 (UTC) Received: from mail-yb0-f174.google.com (mail-yb0-f174.google.com [209.85.213.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EFC9660D7B for ; Wed, 17 May 2017 13:28:38 +0000 (UTC) Received: by mail-yb0-f174.google.com with SMTP id p143so2917040yba.2 for ; Wed, 17 May 2017 06:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mg9kcAACz9kvO1LE6VjgKObud04TQnGMblAPFVajidQ=; b=R3KtPnKv8VtItWYRq8ENbejH9rWMuuGOwQr7nWSzoYnENWn0smHaLzOP5rF2aR8gP1 QtTTXXC1T0ApzEmA7Lv9lVpfoHHE2eIHeu62tAHMf1ypqRLYsRl9EyMMNok1aqat4hTI xM6CwYlR0jI4aKzhBI6lQFlYIj8cbiZVT+bOhTugFTuFRG2Uf9lX7EQdzlrrrqwD7r0x uB9ohbj4RVR19dDRevnB4q0G9XDPYyXfgHIXkzOpdJt8ZTho6RdbjKDU5oD8ihFIN+tY x2LGmaLFE4Vkde+9Qo3PSe+L7tPhxfFmdytgH/T4pm+ioE2e1bybEImYIrKGACC3/hkU IZdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mg9kcAACz9kvO1LE6VjgKObud04TQnGMblAPFVajidQ=; b=n9X7ot/Kkqw+FxKsBHmy5+womMBNHN10zzeQaiFz5oI680tCd8Sx3dFiDZ3pddsLd3 nc5gkMLv92pW1RmayNzGjgoQ4kjf+pM/2KM+rsMWFspKmBT+Hz1ePqvXeEGE1iT9u7w4 yx/FKo9WaCyuazQW1hUsNTwRoU9S8J4Mb+69V09GbLAt6Hq+yPOvic/J6GTdUDQjTXNB b5QgFnQ63HO8zmvEvhAe4hcstw9vU8tjHzWnNxkcMRse2gxAYSLPgUkSddJWQFuwsGH+ 2VFSohR09Z08Aw2ugZ83ZIR/kjsCgdREPsVy1NkZReXMFAL+UBu/+TxZrTTIN1mzP1uq jDYw== X-Gm-Message-State: AODbwcAli8olSc/J+RB6L3iyMNRTn01unxdiuOdnQ37KvXse/jz27wyF XsVsNogiCV8PTPvTDOKnIcAH6g05mHwR X-Received: by 10.37.25.11 with SMTP id 11mr2693282ybz.62.1495027712142; Wed, 17 May 2017 06:28:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.45.91 with HTTP; Wed, 17 May 2017 06:28:31 -0700 (PDT) In-Reply-To: References: From: Ted Yu Date: Wed, 17 May 2017 06:28:31 -0700 Message-ID: Subject: Re: hbase coprocessor in mapreduce To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary="001a113edee4b64dff054fb84395" archived-at: Wed, 17 May 2017 13:28:43 -0000 --001a113edee4b64dff054fb84395 Content-Type: text/plain; charset="UTF-8" You can take a look at the following from Phoenix: phoenix-core/src/main/java/org/apache/phoenix/coprocessor/GroupedAggregateRegionObserver.java On Wed, May 17, 2017 at 1:59 AM, Rajeshkumar J wrote: > Hi, > > I want to groupby hbase data by some columns and again I want to group > the resultant data by some columns and check the size of each group if > greater than 1 it will be written to hdfs. Initially we are doing this in > mapreduce but we got some issue in reducer. So we thought we can move this > group by operation to hbase using coprocessor. > Hence using this coprocessor we will scan and group data by some columns > . Then again I want to group the resultant data how to achieve this in > coprocessor?? whether this use case fits in coprocessor?? > > Thanks > > On Wed, May 17, 2017 at 1:28 PM, Ted Yu wrote: > > > Can you clarify your use case ? > > > > If your mapper calls Table#coprocessorService(), the recipient may not be > > on the same region server as the mapper. > > > > On Tue, May 16, 2017 at 10:58 PM, Rajeshkumar J < > > rajeshkumarit8292@gmail.com > > > wrote: > > > > > Hi, > > > > > > whether I can call hase coprocessor in the map function of mapreduce > > > job? > > > > > > Thanks > > > > > > --001a113edee4b64dff054fb84395--