Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 69527 invoked from network); 11 Mar 2010 00:09:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 00:09:32 -0000 Received: (qmail 32128 invoked by uid 500); 11 Mar 2010 00:09:00 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 32087 invoked by uid 500); 11 Mar 2010 00:09:00 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 32079 invoked by uid 99); 11 Mar 2010 00:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 00:08:59 +0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sallonchina@hotmail.com designates 65.54.190.207 as permitted sender) Received: from [65.54.190.207] (HELO bay0-omc4-s5.bay0.hotmail.com) (65.54.190.207) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 00:08:58 +0000 Received: from BAY121-DS11 ([65.54.190.199]) by bay0-omc4-s5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 10 Mar 2010 16:08:38 -0800 X-Originating-IP: [218.241.236.68] X-Originating-Email: [sallonchina@hotmail.com] Message-ID: From: To: References: <7c962aed1003100759p46ade435s8db0f40b1c2f377e@mail.gmail.com> In-Reply-To: <7c962aed1003100759p46ade435s8db0f40b1c2f377e@mail.gmail.com> Subject: Re: Tables Miss after Adding New Slave Date: Thu, 11 Mar 2010 08:08:37 +0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 X-OriginalArrivalTime: 11 Mar 2010 00:08:38.0142 (UTC) FILETIME=[FFC4F1E0:01CAC0AE] Thanks Stack. It is very helpful for my future use. Xianglong -------------------------------------------------- From: "Stack" Sent: Wednesday, March 10, 2010 11:59 PM To: Subject: Re: Tables Miss after Adding New Slave > 2010/3/10 : >> Hi, everyone. I set up a hadoop cluster with 3 nodes: one mater and two >> slaves. Recently I want to add a new node as a slave to it. After >> configuration, the HDFS and HBase work, however, I found some tables in >> HBase previously disappear. I browse hbase directory in HDFS and found >> directories of the missing tables. Does anyone encounter the same >> situations or is there someone can help me to recover these tables? >> thanks! >> > > Perhaps the node carrying the .META. region -- the catalog table that > has table info -- was killed before it had time to flush its edits so > added table edits were lost? > > You could playing with the ./bin/add_table.rb script. See the head of > the script for how to use it. This should restore your tables by > reading the content of the filesystem adding back the missing edits to > .META.. > > In future, be careful how you close down your cluster. You could try > flushing .META. first before running shutdown by doing the following > in the shell: > > hbase> flush ".META." > > St.Ack >