Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86CBBDB03 for ; Tue, 2 Oct 2012 23:08:20 +0000 (UTC) Received: (qmail 19596 invoked by uid 500); 2 Oct 2012 23:08:18 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 19555 invoked by uid 500); 2 Oct 2012 23:08:18 -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 19543 invoked by uid 99); 2 Oct 2012 23:08:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 23:08:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.210.41 as permitted sender) Received: from [209.85.210.41] (HELO mail-da0-f41.google.com) (209.85.210.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 23:08:09 +0000 Received: by dadi14 with SMTP id i14so2632521dad.14 for ; Tue, 02 Oct 2012 16:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=BAxKOKI41PcjYNA6rIG5JZfXKzNI/M9VpUHtXK4y7i0=; b=ALAALUs3n97bk+nk7cUQi1InPU+2ohGWq3cJ9MEK/olFTqpCQRWykCtfS/2/0XDcY4 GLpWzEHqdDORlAyxyNyNuq+DVp5fmGvQZZENPoEf1UtYI64nttHUxsj0fBhWJC5fIiUr mUKwtFfHOsyG1qQLFuIKHAgVnzEk6+s7eV6u/11ucm1ZAYpxZI5VF3tLc6aOyHVylJbe XnEaVMrppEoNowEhoQZYisnyzvQnoBKh2ZJYTxsfaxZRcdg7XVyzonKFeIq6UG0CTdCN a7+zHb++wvQEkTi0vmIcVykhowGcxILH3k/0foeDZSB/OFJ2MyeXiiRsfBI6KHj7eQ2D n6lA== Received: by 10.68.136.138 with SMTP id qa10mr8061252pbb.142.1349219267789; Tue, 02 Oct 2012 16:07:47 -0700 (PDT) Received: from [192.168.112.223] ([216.113.168.148]) by mx.google.com with ESMTPS id i1sm1389433pay.26.2012.10.02.16.07.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 16:07:46 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Message-Id: <11927721-2ACB-4085-B281-705BF6CD02DD@gmail.com> Cc: "user@hbase.apache.org" X-Mailer: iPhone Mail (9A405) From: yuzhihong@gmail.com Subject: Re: Problem with recreation of a phantom table Date: Tue, 2 Oct 2012 16:07:43 -0700 To: "user@hbase.apache.org" Can you try using hbck ? In the future, don't remove anything before using hbck. Thanks On Oct 2, 2012, at 3:55 PM, Shumin Wu wrote: > Hi, > > I am using HBase 0.92 and got stuck with deletion/recreation of a phantom > table. The table became "phantom" because hbase server went offline during > the first time when it got deleted. Since then I cannot recreate the table > because of the inconsistency catalog information. > > Below is what I got from the hbase shell (I replaced the table name with a > fake name). > > > ============================================= > * > hbase(main):005:0> create 'phantom_table','cf'* > > ERROR: Table already exists: phantom_table! > > Here is some help for this command: > Create table; pass table name, a dictionary of specifications per > column family, and optionally a dictionary of table configuration. > Dictionaries are described below in the GENERAL NOTES section. > Examples: > > hbase> create 't1', {NAME => 'f1', VERSIONS => 5} > hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} > hbase> # The above in shorthand would be the following: > hbase> create 't1', 'f1', 'f2', 'f3' > hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, > BLOCKCACHE => true} > hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']} > hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'} > > * > hbase(main):006:0> disable 'phantom_table'* > > ERROR: Table phantom_table does not exist.' > > Here is some help for this command: > Start disable of named table: e.g. "hbase> disable 't1'" > > ============================================= > > Here are the attempts I already did for investigation. > > - I did a fsck on /hbase. It reported healthy. > > - I did a scan on .META.. The phantom table is not listed there. > > - I checked zookeeper's hbase directory and found the phantom table. I > deleted the entry but the problem reported above still persistent. > > Any comments or suggestions are highly appreciated! > > Thanks, > > Shumin