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 2D159200BC7 for ; Fri, 21 Oct 2016 00:27:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 28DF6160AF2; Thu, 20 Oct 2016 22:27:01 +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 6FA9E160AE0 for ; Fri, 21 Oct 2016 00:27:00 +0200 (CEST) Received: (qmail 58258 invoked by uid 500); 20 Oct 2016 22:26:59 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 58230 invoked by uid 99); 20 Oct 2016 22:26:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 22:26:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5B64D2C0086 for ; Thu, 20 Oct 2016 22:26:59 +0000 (UTC) Date: Thu, 20 Oct 2016 22:26:59 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16894) Create more than 1 split per region, generalize HBASE-12590 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Oct 2016 22:27:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-16894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15593219#comment-15593219 ] Enis Soztutar commented on HBASE-16894: --------------------------------------- bq. or should we pass a custom split list? I think the users will generally not know these splits points. It should be hbase which keeps track of region boundaries and internally split points within the regions. As a user, the API should be like create a split for every 5GB, or there should be a total of X map tasks. > Create more than 1 split per region, generalize HBASE-12590 > ----------------------------------------------------------- > > Key: HBASE-16894 > URL: https://issues.apache.org/jira/browse/HBASE-16894 > Project: HBase > Issue Type: Improvement > Reporter: Enis Soztutar > > A common request from users is to be able to better control how many map tasks are created per region. Right now, it is always 1 region = 1 input split = 1 map task. Same goes for Spark since it uses the TIF. With region sizes as large as 50 GBs, it is desirable to be able to create more than 1 split per region. > HBASE-12590 adds a config property for MR jobs to be able to handle skew in region sizes. The algorithm is roughly: > {code} > If (region size >= average size*ratio) : cut the region into two MR input splits > If (average size <= region size < average size*ratio) : one region as one MR input split > If (sum of several continuous regions size < average size * ratio): combine these regions into one MR input split. > {code} > Although we can set data skew ratio to be 0.5 or something to abuse HBASE-12590 into creating more than 1 split task per region, it is not ideal. But there is no way to create more with the patch as it is. For example we cannot create more than 2 tasks per region. > If we want to fix this properly, we should extend the approach in HBASE-12590, and make it so that the client can specify the desired num of mappers, or desired split size, and the TIF generates the splits based on the current region sizes very similar to the algorithm in HBASE-12590, but a more generic way. This also would eliminate the hand tuning of data skew ratio. > We also can think about the guidepost approach that Phoenix has in the stats table which is used for exactly this purpose. Right now, the region can be split into powers of two assuming uniform distribution within the region. -- This message was sent by Atlassian JIRA (v6.3.4#6332)