Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 71549 invoked from network); 9 Sep 2010 05:04:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Sep 2010 05:04:42 -0000 Received: (qmail 32556 invoked by uid 500); 9 Sep 2010 05:04:41 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 32297 invoked by uid 500); 9 Sep 2010 05:04:39 -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 32289 invoked by uid 99); 9 Sep 2010 05:04:38 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 05:04:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saint.ack@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 05:04:15 +0000 Received: by wwb22 with SMTP id 22so812647wwb.20 for ; Wed, 08 Sep 2010 22:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=uPCjYyPqD2QWmnRnwmYjNfI9HRa6barlkr+uB+YV8FQ=; b=SfcQO0+jrcyLMumVO8zze7p1AqzZstPEmTM/bLCaijR7porvvYty9p3GkCXQzwvSTb Fy82qQ4Rq1h1o3oNoL1zsMe3KkQOwhOTDbCMurtguhuwTLpt0p2/xQZoiOTuMniQZIHX rKmEosIngYpCkU2NR/CwCZ3TPziEoMAG75NTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Cvdn+ErLdlYnd6g1tKl+956q884Bp1egOxAmWXi9JxHkqj8WNasA2MK7sZSOm8VpyG xj50gpQJ7iLhCSNDZWSnoSyhPsaF5spZjQMQICQaqt51VfZNUTCnXVfhI+lq/QOQbkHx MVCWtCOszvMym1MY/CQ5564nquZUuZ1Jcb4aM= MIME-Version: 1.0 Received: by 10.216.11.66 with SMTP id 44mr1090278wew.69.1284008635088; Wed, 08 Sep 2010 22:03:55 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.216.131.24 with HTTP; Wed, 8 Sep 2010 22:03:55 -0700 (PDT) In-Reply-To: References: <5A76F6CE309AD049AAF9A039A3924282073D5B36@sc-mbx04.TheFacebook.com> <234843.11162.qm@web65504.mail.ac4.yahoo.com> Date: Wed, 8 Sep 2010 22:03:55 -0700 X-Google-Sender-Auth: dMi_zWbZO5kAsUHc5SQ7OMsGeMA Message-ID: Subject: Re: how to remove dangling region and table? From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org hbase> scan '.META.' # Look at output for rows w/ your table mentioned hbase> delete '.META.', 'ROW_FROM_META_WITH_YOUR_TABLE' Or you could dump scan to a file echo "scan '.META.'"|./bin/hbase shell &> /tmp/meta.txt ... figure list of rows to delete Then write script to delete rows. St.Ack On Wed, Sep 8, 2010 at 9:29 PM, Jinsong Hu wrote: > how do I delete the =A0entries from .META. ? Is there a command or utilit= y > that I can use ? > > the table doesn't even appear in "list" command any more. > if I try to run disable command, the shell says the table doesn't exist. > if I try to a table with that name, the shell says the table already exis= ts. > > Jimmy. > > -------------------------------------------------- > From: "Stack" > Sent: Wednesday, September 08, 2010 8:54 PM > To: > Subject: Re: how to remove dangling region and table? > >> On Wed, Sep 8, 2010 at 6:05 PM, Jinsong Hu wrot= e: >>> >>> Hi, >>> =A0I created a table and inserted 1.1 TB data, then I tried to drop the >>> table >>> and data. I understand that current hbase has a bug, >> >> >> Yeah, enable/disable is kinda flakey in 0.20.x hbase. >> >>> so I renamed the table to a temp name. and then dropped the temp table. >>> =A0However, I found that some of the regions are not renamed to the tem= p >>> table >>> and they are still with the original table name. >>> I tried to physically remove the HFS dir, and restart master and >>> regionserver, delete it from HDFS again , and restart master/regionserv= er >>> again. the regions just continue to hang there. and I can't create a >>> table >>> with the original name. >> >> Yes. =A0The table has mention in the .META. table. =A0You'll need to >> delete the entries here as well as remove the table dir from hdfs. >> >> Or, just keep trying to disable. =A0It usually succeeds eventually. >> Then do drop table. >> >>> =A0Is there any way I can remove the dangling region and then I can cre= ate >>> a >>> brand new table with original name ? >>> >> >> Go through meta and delete each row which has the tablename for a prefix= . >> >> Or shutdown hbase, remove the hbase.rootdir and restart. >> >> St.Ack >> >