Return-Path: Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: (qmail 54820 invoked from network); 19 Nov 2010 19:37:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 19:37:23 -0000 Received: (qmail 20366 invoked by uid 500); 19 Nov 2010 19:37:55 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 20335 invoked by uid 500); 19 Nov 2010 19:37:55 -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 20327 invoked by uid 99); 19 Nov 2010 19:37:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 19:37:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 19:37:48 +0000 Received: by fxm20 with SMTP id 20so3002124fxm.14 for ; Fri, 19 Nov 2010 11:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=/sRNn3UAMa63DPXSDbi/nqPNVUbvxNhV3r7jsW/uwwI=; b=j0veZ6Gd2e9p2Ad1i15YfPHmTCUCAzJlbcSzqRFsr+jXeEWGlqfGiW/bsg7ICEc9Rd yZyl1YmvdeR9yX53kutndgkj8CsQGlu09GlKmcUxOdaOcQHvhSPqvgc/uNEUFjHZitPz lUYVKMMBHEqgJmarjuCr4XDvceOKWPLJuPdm0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SyJhnRnc4yc4vZx59DqxAmflR9Vf9X1XnMqkXyU6ju5QXU6KTAhL6sUH/eMNKiW9sL EmEHBaQAdtk2NRAKHNTgp752rZA6iKoDF9a+PQscDPKCWMbB/uPuzslMFw+ilOi8F91Z dbYPoXE72KjKytqoHVBkf38uFpM1VNMM/6Ibs= MIME-Version: 1.0 Received: by 10.223.69.140 with SMTP id z12mr1278775fai.142.1290195445767; Fri, 19 Nov 2010 11:37:25 -0800 (PST) Received: by 10.223.72.6 with HTTP; Fri, 19 Nov 2010 11:37:25 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Nov 2010 11:37:25 -0800 Message-ID: Subject: Re: table not shown on master UI but creating same table fails From: Ted Yu To: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3054a7153c5cdd04956d098c --20cf3054a7153c5cdd04956d098c Content-Type: text/plain; charset=ISO-8859-1 You can find more detail in https://issues.apache.org/jira/browse/HBASE-3251 On Fri, Nov 19, 2010 at 10:44 AM, Ted Yu wrote: > Here is a summary of what I did: > echo "scan '.META.', {COLUMNS => 'info:regioninfo'}" | > $HBASE_HOME/bin/hbase shell > result > then find the row for packageindex table in result > then: > hbase(main):001:0> deleteall '.META.', > 'packageindex,E70888DD48276DFAD4D26FEB08DC7045,1290163034864' > > Now I can create the table again. > > > On Fri, Nov 19, 2010 at 10:01 AM, Jean-Daniel Cryans wrote: > >> Seems like a classic .META. issue from 0.20, I would suggest that you >> look at the master's state (regions in transition, etc), and that you >> scan .META. for that table. >> >> Also, looking at the code that lists the table, I see one case where a >> row would be in .META. but not listed: >> >> byte[] value = result.getValue(CATALOG_FAMILY, >> REGIONINFO_QUALIFIER); >> HRegionInfo info = null; >> if (value != null) { >> info = Writables.getHRegionInfo(value); >> } >> // Only examine the rows where the startKey is zero length >> if (info != null && info.getStartKey().length == 0) { >> uniqueTables.add(info.getTableDesc()); >> } >> >> >> Could it be that the first region isn't in .META.? >> >> J-D >> On Fri, Nov 19, 2010 at 9:56 AM, Ted Yu wrote: >> > Hi, >> > We use hbase 0.20.6 >> > We're facing weird state for a particular table: >> > >> > 2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not >> > create packageindex >> > org.apache.hadoop.hbase.TableExistsException: >> > org.apache.hadoop.hbase.TableExistsException: packageindex >> > at >> org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799) >> > at >> org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763) >> > at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) >> > at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:597) >> > at >> org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657) >> > at >> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998) >> > >> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> > at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> > at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> > at >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> > at >> org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94) >> > at >> org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283) >> > at >> org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240) >> > at >> org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206) >> > ... >> > 2010-11-19 09:25:08,352 Thread-20 INFO >> > [HBasePackageIndexTableMapperNew] Creating table packageindex - Done >> > 2010-11-19 09:25:08,374 Thread-20 INFO [CodecPool] Got brand-new >> decompressor >> > 2010-11-19 09:25:08,396 Thread-20 INFO >> > [HBasePackageIndexTableMapperNew] OnClose called >> > 2010-11-19 09:25:08,397 Thread-20 WARN [LocalJobRunner] job_local_0001 >> > org.apache.hadoop.hbase.TableNotFoundException: packageindex >> > at >> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698) >> > at >> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634) >> > at >> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601) >> > at org.apache.hadoop.hbase.client.HTable.(HTable.java:134) >> > at org.apache.hadoop.hbase.client.HTable.(HTable.java:112) >> > >> > Can someone suggest what I should do so that I can create this table >> again ? >> > >> > Thanks >> > >> > > --20cf3054a7153c5cdd04956d098c--