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 3AEA3D66A for ; Sun, 22 Jul 2012 16:59:28 +0000 (UTC) Received: (qmail 32941 invoked by uid 500); 22 Jul 2012 16:59:24 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 32879 invoked by uid 500); 22 Jul 2012 16:59:24 -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 32835 invoked by uid 99); 22 Jul 2012 16:59:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2012 16:59:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mdnguyen@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2012 16:59:16 +0000 Received: by wgbed3 with SMTP id ed3so3822273wgb.20 for ; Sun, 22 Jul 2012 09:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=gLAYE3xsqZ2NeiFBmN8ycHAdqODj7xayZuInVTw3vT8=; b=NNgWjKxcQcXHpmxYR4BBt/xRGQv2SjPgdckEFo6fe+9BGncPsf5iT+GxIe4/Cg8OUh h8X+3LE//Tv6INAzvexA46PgRuHtSnBnaXwNqXtuqEqulnI5xQ0G4q4CvVMIiujs+A4O MjKaSz/AdraDrRGPnUWbZkoGlf4o98csb5Bv+2n8/QSj5tA/yLU/NRIrFTK5djhLL3ul fT+AJQieyC+997t5CzfaV0NMe494UYGKNwncb8TWnYb8gNhfQasy8bMFwvhNELYqQ3cp Q7QG+DLuFb7W98iTKAsruiY8AN1ggAOjMRU+66sPzSyyd4DdXwJyyJ7QvpC1iLE/FtOp LSsg== Received: by 10.180.19.162 with SMTP id g2mr29618069wie.22.1342976336324; Sun, 22 Jul 2012 09:58:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.43.165 with HTTP; Sun, 22 Jul 2012 09:58:36 -0700 (PDT) In-Reply-To: References: From: Minh Duc Nguyen Date: Sun, 22 Jul 2012 12:58:36 -0400 Message-ID: Subject: Re: HBase Cannot Start Again After Sudden Power-Off To: user@hbase.apache.org, bing.li@asu.edu Cc: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec53d588777e6a604c56e0b86 --bcaec53d588777e6a604c56e0b86 Content-Type: text/plain; charset=ISO-8859-1 Bing, as far as why HBase is configured as such, it's by design. The HBase documentation is very clear in explaining that pseudo-distributed mode is for "configuration testing and prototyping." http://hbase.apache.org/book.html#standalone_dist In order to make it as easy as possible for people to get up and running with HBase, the default configuration for HBase in pseudo-distributed mode is to use /tmp. Of course, when linux restarts, it will clear out the /tmp directory. Since you've been running HBase for 4 months now, it may be worth your while to setup a small HBase cluster in fully-distributed mode. While convenient, HBase in pseudo-distributed mode will not be as reliable as fully-distributed. ~ Minh On Sun, Jul 22, 2012 at 5:29 AM, Bing Li wrote: > Dear all, > > I have used HBase in the pseudo-distributed mode for four months. Last > night a sudden power-off shut down my HBase machine abnormally. Thereafter, > HBase could be started. > > I had to reinstall my HBase again. This is a very bad experience. It is > fortunate that my system is in a development stage. If it works for a > business, that must be a disaster. > > I guess the problem is caused because some configuration data is written in > /tmp. I really DON'T understand why the designers of Hadoop/HBase did that! > I have to change a lot of configurations to avoid configuration data loss > in /tmp. > > After reinstallation, HBase can be started normally. Then, I shut down > HBase/Hadoop and turned the machine off. > > But, today I got another problem. When starting the system, HBase could not > be started again! I checked the files in /tmp and noticed that HBase wrote > some Jetty-related files in it. > > ... > drwxr-xr-x 4 libing libing 4096 2012-07-22 16:27 > Jetty_0_0_0_0_50070_hdfs____w2cu08 > drwxr-xr-x 4 libing libing 4096 2012-07-22 16:27 > Jetty_0_0_0_0_50090_secondary____y6aanv > drwxr-xr-x 4 libing libing 4096 2012-07-22 16:27 > Jetty_0_0_0_0_50075_datanode____hwtdwq > ... > > I didn't see them before. I guess that's the problem why HBase cannot be > started? If so, could you please tell me how to force HBase to write the > Jetty-related files to the directories other than /tmp? > > Your help is highly appreciated! > > Best regards, > Bing > --bcaec53d588777e6a604c56e0b86--