Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B22911F10 for ; Sat, 19 Jul 2014 00:18:42 +0000 (UTC) Received: (qmail 62832 invoked by uid 500); 19 Jul 2014 00:18:39 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 62645 invoked by uid 500); 19 Jul 2014 00:18:39 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 62497 invoked by uid 99); 19 Jul 2014 00:18:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 00:18:39 +0000 Date: Sat, 19 Jul 2014 00:18:39 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-3109) Support deletion of whole region 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-3109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Purtell resolved HBASE-3109. ----------------------------------- Resolution: Not a Problem > Support deletion of whole region > --------------------------------- > > Key: HBASE-3109 > URL: https://issues.apache.org/jira/browse/HBASE-3109 > Project: HBase > Issue Type: New Feature > Reporter: Jeff Zhang > > Like the bulk import, bulk deletion would also be useful and efficiency for users. The following the instruction from stack: > I think you could script it easy enough in TRUNK (I think you need > TRUNK because you can ask it when a region is closed since there is no > synchronous close of regions currently). > 1. Close the region (See shell for how to send a close message or look > at HBaseAdmin API doc). > 2. While its closing, you may have to disable the region in .META. > (See bin/*.rb scripts for how to mangle .META.). This may not be > necessary IIRC in TRUNK (In 0.20.x, it is necessary to prevent the > region being opened elsewhere when the regionserver reports sucessful > close). > 3. Check the regionserver periodically for the closing region. When > its no longer mentioned in online regions, you know its closed. > 4. Close the region that falls just after the one you just closed > (Same trick w/ offlining above). Do fixup on meta where you extend > the key scope of this region so that it covers the region just closed > by making its startkey that of the region just closed. > 5. Reenable (in 0.20. this would mean flipping region to be enabled > again -- in TRUNK, you might have to explicitly open it on a > regionserver -- would have to check). -- This message was sent by Atlassian JIRA (v6.2#6252)