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 6EC8719A11 for ; Fri, 25 Mar 2016 20:13:49 +0000 (UTC) Received: (qmail 95323 invoked by uid 500); 25 Mar 2016 20:13:47 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 95250 invoked by uid 500); 25 Mar 2016 20:13:47 -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 95238 invoked by uid 99); 25 Mar 2016 20:13:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2016 20:13:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3049CC059B for ; Fri, 25 Mar 2016 20:13:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.179 X-Spam-Level: ** X-Spam-Status: No, score=2.179 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id FyjK91TsbCHW for ; Fri, 25 Mar 2016 20:13:45 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 33F575FADB for ; Fri, 25 Mar 2016 20:13:45 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id s5so39339166qkd.0 for ; Fri, 25 Mar 2016 13:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=I9eynS3/RQFfUUA/eGVKpiX0WIvjcRMG1uy4D5C1O/0=; b=iwoYvtyMXtO3luIij28hP736arFjQGiHri7/xW/A1749BommLEN/g9zza7rsZFSWZS RcwmB6QCax8f4uM7eQKLQivVv9O9AXLydJVprL0BFquJ9GCSmHh1p3xvzDd4P3GaeyiE qi3JpG/AseFBIF82bS7ckUelduWpsL0KHu6kWFuMF4gfpLotPK/vIScOJAmqvPeF03DB tcK+fQ3XmMYIB1h1HtIY2WXa/uUXViM5ytobp1GNAFmF9ki68ELKww4G/pOjSAERZQzW VRsCJhZDu8/kEE4fQScAAPFRZu1ucO3Eoq5CYbKOLFVhq8/esDGT9UTPam9GBbGNnoMp uteg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=I9eynS3/RQFfUUA/eGVKpiX0WIvjcRMG1uy4D5C1O/0=; b=LjqBePGMKBEm9eN2HjI7ejXJD6ZfMxOoSmzPjnAmYrfxNadq9S95MYw4B0iXpS7k5v m+ui+gVVEABGKOug4InG/ZRUOWqCSWhv5fFmW7YbyG9Yxiy9qp/Rm9nAZ1KC9aT6Eaud 20d5Yc+eEo/+n/f/TsAOKXl6b/ngegVrYzwoMLgRVX8L2ENuZoWGvJrLQt2efFNE8Asv rYYNbclThexYnGal4l0uPxvN2KqJb1vHuYrU4J6j4vwTl9fxnqr2KGfKWP5gQKiM/GCq tUPWQ45Xeh1R5sSBF0zbncCLiKIn0ePgBbnUX5NcmcWMd9naoHZtEElidRlszq8GAafm 75og== X-Gm-Message-State: AD7BkJJbbBrGHStLDov4nIwQu3Zu3wOGE53JT1vbr1ySXsM527x8g1I3NyGsFUvpjbSEWXWKbcrLo0swjrTdFA== MIME-Version: 1.0 X-Received: by 10.37.72.202 with SMTP id v193mr8659174yba.25.1458936824300; Fri, 25 Mar 2016 13:13:44 -0700 (PDT) Received: by 10.37.208.4 with HTTP; Fri, 25 Mar 2016 13:13:44 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Mar 2016 13:13:44 -0700 Message-ID: Subject: Re: processing in coprocessor and region splitting From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a113e9920298caa052ee533be --001a113e9920298caa052ee533be Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable bq. calculating another new attributes of a trade Can you put the new attributes in separate columns ? Cheers On Fri, Mar 25, 2016 at 12:38 PM, Daniel Po=C5=82acza=C5=84ski wrote: > The data is set of trades and the processing is some kind of enrichment > (calculating another new attributes of a trade). All attributes are neede= d > (the original and new) > > 2016-03-25 18:41 GMT+01:00 Ted Yu : > > > bq. During the processing the size of the data is doubled. > > > > This explains the frequent split :-) > > > > Is the original data needed after post-processing (maybe for auditing) = ? > > > > Cheers > > > > On Fri, Mar 25, 2016 at 10:32 AM, Daniel Po=C5=82acza=C5=84ski < > > dpolaczanski@gmail.com > > > wrote: > > > > > I am testing different solutions (POC). > > > The region size currenlty is 32MB (I know it should be >=3D 1GB, but = we > are > > > testing different solutions with smaller amount of the data ). So > > > increasing region size is not a solution. Our problems can happen eve= n > > when > > > a region will be 1 GB. We want to proces the data with coprocessor an= d > > > hadoop map reduce. I can not have one big Region because I want > sensible > > > degree of paralerism (with Map Reduce and coprocessors). > > > > > > Increasing region size + pre-splitting is not an option as well > because > > I > > > know nothing about keys(random long). > > > > > > During the processing the size of the data is doubled. > > > > > > And yes, coprocessor rewrites a lot of the data written into the tabl= e. > > The > > > whole record is serialized to avro and stored in one column (storing > > single > > > attribute in single column we will try in the next POC) > > > > > > it is not a typical big data project where we can allow former analys= is > > of > > > the data:) > > > > > > 2016-03-25 17:38 GMT+01:00 Ted Yu : > > > > > > > What's the current region size you use ? > > > > > > > > bq. During the processing size of the data gets increased > > > > > > > > Can you give us some quantitative measure as to how much increase y= ou > > > > observed (w.r.t. region size) ? > > > > > > > > bq. I was looking for some "global lock" in source code > > > > > > > > Probably not a good idea using global lock. > > > > > > > > I am curious, looks like your coprocesser may rewrite a lot of data > > > written > > > > into the table. > > > > Can client side accommodate such logic so that the rewrite is > reduced ? > > > > > > > > Thanks > > > > > > > > On Fri, Mar 25, 2016 at 8:55 AM, Daniel Po=C5=82acza=C5=84ski < > > > > dpolaczanski@gmail.com> > > > > wrote: > > > > > > > > > Hi, > > > > > I have some processing in my coprocesserService which modifies th= e > > > > existing > > > > > data in place. It iterates over every row, modifies and puts it > back > > to > > > > > region. The table can be modified by only one client. > > > > > > > > > > During the processing size of the data gets increased -> region's > > size > > > > get > > > > > increased -> region's split happens. It makes that the processing > is > > > > > stopped by exception NotServingRegionException (because region is > > > closed > > > > > and splited to two new regions so it is closed and doesn't exist > > > > anymore). > > > > > > > > > > Is there any clean way to block Region's splitting? > > > > > > > > > > I was looking for some "global lock" in source code but I haven't > > found > > > > > anything helpfull. > > > > > Another idea is to create custom RegionSplitPolicy and explicilty > set > > > > some > > > > > Flag which will return false in shouldSplit(), but I'm not sure y= et > > if > > > it > > > > > is safe. > > > > > Could you advise? > > > > > Regards > > > > > > > > > > > > > > > --001a113e9920298caa052ee533be--