Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FA7B10840 for ; Tue, 7 May 2013 00:18:26 +0000 (UTC) Received: (qmail 61342 invoked by uid 500); 7 May 2013 00:18:20 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 61223 invoked by uid 500); 7 May 2013 00:18:20 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 61216 invoked by uid 99); 7 May 2013 00:18:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 00:18:20 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.192.176] (HELO mail-pd0-f176.google.com) (209.85.192.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 00:18:14 +0000 Received: by mail-pd0-f176.google.com with SMTP id x10so2273880pdj.7 for ; Mon, 06 May 2013 17:17:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:x-gm-message-state; bh=wRWUa29uHY3VN8H4q4IpKUJ4zcmWD8TP0zLpk/YQxEc=; b=V7hxqNChOPzeIsVD1/GFPpZlnPYj4tEgsBQ4+jx5Zi9LiJfwbuYqmDPUrqZfwoH+wu F4Bv5tEFOLY3MUM6HWKMIVfsWYDPQOGv4fJGQQbIv2EeEdOGUcE0Zu0J0fhUVTT/sUZr UbVPwtmcSO+5Ytw7ZZR2v6WJZadSBGarZVSXTx1fdkfKcYpf+CVB3xY4X09C5XFVC3sr 7ggIq+fe5gH8lh0v/53kXvTA1bGdyAU8DAvYkU4YhH7vAcazIDKkE+v+SacvZeox/HtQ rgsx/C/QfyldBCOdoVO0Ixdl14wMHSMfl70MR6EB+mNmZSLIKpO9M3BrSC0UcWy47mSO mY2w== X-Received: by 10.68.198.69 with SMTP id ja5mr28589692pbc.183.1367885851926; Mon, 06 May 2013 17:17:31 -0700 (PDT) Received: from [192.168.6.208] ([59.46.115.123]) by mx.google.com with ESMTPSA id at4sm25713913pbc.40.2013.05.06.17.17.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 17:17:30 -0700 (PDT) Message-ID: <51884803.4050804@doopai.com> Date: Tue, 07 May 2013 08:17:07 +0800 From: =?UTF-8?B?5q615rSq5LmJ?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 MIME-Version: 1.0 To: user@hadoop.apache.org Subject: Re: How to restore HDFS data References: <518261E7.8020606@doopai.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020808020305050404070803" X-Gm-Message-State: ALoCoQlQhv+GUm9l/yVKUpizf7hVOqkcmF5zwRApcjGjHdBK+AEyPOGLDjPrOXVSQlhvpvNzyk24 X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------020808020305050404070803 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thank you, I use rsync to backup every day, so I lost a day of data. 于 2013年05月02日 21:19, Harsh J 写道: > If you've already run -delete (-move is a better choice if you know DN > fault is temporary), then the missing blocks are already deleted from > the namespace permanently. No way to recover the data since the blocks > have also been invalidated by now. > > A HDFS Snapshots feature will arrive in near future to cover the > backup scenarios that may prove useful in cases such as this. > > > On Thu, May 2, 2013 at 6:23 PM, 段洪义 > wrote: > > Datanode error, and then I run hadoop fsck /-delete.Lost a lot of > data, > Later, these datanode recovery, Is there any way to restore the fsck > command to delete the data. > > > > > -- > Harsh J --------------020808020305050404070803 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Thank you, I use rsync to backup every day, so I lost a day of data.


于 2013年05月02日 21:19, Harsh J 写道:
If you've already run -delete (-move is a better choice if you know DN fault is temporary), then the missing blocks are already deleted from the namespace permanently. No way to recover the data since the blocks have also been invalidated by now.

A HDFS Snapshots feature will arrive in near future to cover the backup scenarios that may prove useful in cases such as this.


On Thu, May 2, 2013 at 6:23 PM, 段洪义 <duanhongyi@doopai.com> wrote:
Datanode error, and then I run hadoop fsck /-delete.Lost a lot of data,
Later, these datanode recovery, Is there any way to restore the fsck
command to delete the data.



--
Harsh J

--------------020808020305050404070803--