Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35C759E47 for ; Thu, 20 Oct 2011 01:48:32 +0000 (UTC) Received: (qmail 23064 invoked by uid 500); 20 Oct 2011 01:48:32 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 23022 invoked by uid 500); 20 Oct 2011 01:48:32 -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 23013 invoked by uid 99); 20 Oct 2011 01:48:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 01:48:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 01:48:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D77AF312D7E for ; Thu, 20 Oct 2011 01:48:10 +0000 (UTC) Date: Thu, 20 Oct 2011 01:48:10 +0000 (UTC) From: "Jonathan Gray (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <96052533.13714.1319075290884.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-1183) New MR splitting algorithm and other new features need a way to split a key range in N chunks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131261#comment-13131261 ] Jonathan Gray commented on HBASE-1183: -------------------------------------- Wow, really got me thinking back. I honestly don't remember exactly why. We convert them to BigInteger so we can do: (stop - start) / numsplits = interval Something related to signed/unsigned? Reading the code it does seem okay. Good thing I didn't write a unit test. Are you seeing that it's broken in some way? I can spend a little more time looking at it if necessary. > New MR splitting algorithm and other new features need a way to split a key range in N chunks > --------------------------------------------------------------------------------------------- > > Key: HBASE-1183 > URL: https://issues.apache.org/jira/browse/HBASE-1183 > Project: HBase > Issue Type: Improvement > Components: util > Reporter: Jonathan Gray > Assignee: Jonathan Gray > Priority: Minor > Fix For: 0.20.0 > > Attachments: hbase-1183-v1.patch, hbase-1183-v2.patch, hbase-1183-v3.patch, hbase-1183-v4.patch > > > For HBASE-1172 and other functionality coming soon, we need to be able to take a [start,stop) range and divide it into chunks. > For example, we have 10 regions but want to run 30 maps. We need to divide each region into three key ranges for the start/stop of each scanner. > Implementing using java.math.BigInteger > Will also include a couple additional helpers in Bytes to make life easy. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira