Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 74413 invoked from network); 5 Aug 2010 00:27:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 00:27:38 -0000 Received: (qmail 71959 invoked by uid 500); 5 Aug 2010 00:27:38 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 71915 invoked by uid 500); 5 Aug 2010 00:27:38 -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 71907 invoked by uid 99); 5 Aug 2010 00:27:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 00:27:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 00:27:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o750RGxk021233 for ; Thu, 5 Aug 2010 00:27:17 GMT Message-ID: <31032307.170921280968036947.JavaMail.jira@thor> Date: Wed, 4 Aug 2010 20:27:16 -0400 (EDT) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-2473) Add to admin create table start and end key params and desired number of regions 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-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895488#action_12895488 ] Ted Yu commented on HBASE-2473: ------------------------------- In HBaseAdmin.createTable(), the following should be used: if (numRegions < 4) { throw new IllegalArgumentException("Must create at least four regions"); } else if(Bytes.compareTo(startKey, endKey) >= 0) { because Bytes.split(startKey, endKey, numRegions - 3) call cannot accept last parameter being 0. > Add to admin create table start and end key params and desired number of regions > -------------------------------------------------------------------------------- > > Key: HBASE-2473 > URL: https://issues.apache.org/jira/browse/HBASE-2473 > Project: HBase > Issue Type: New Feature > Reporter: stack > Assignee: Jonathan Gray > Fix For: 0.90.0 > > Attachments: HBASE-2473-v1.patch, HBASE-2473-v2.patch, HBASE-2473_trunk.patch > > > This would be an adornment on create table that pre-creates N regions in the new table. It came up yesterday at the hbase hackathon3. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.