Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 3B79410D64 for ; Wed, 5 Jun 2013 10:11:38 +0000 (UTC) Received: (qmail 8236 invoked by uid 500); 5 Jun 2013 10:11:33 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 8158 invoked by uid 500); 5 Jun 2013 10:11:30 -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 Delivered-To: moderator for user@hadoop.apache.org Received: (qmail 65549 invoked by uid 99); 5 Jun 2013 09:52:08 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=ag0DqtKqSDHxGbxRu/WgmvPptXULlxUkfmfqU54IUj8=; b=KC4hENQ7cs/GsQSisOw+DuzPDVLkgFQ0Vw4WgvJdRoydlKMA7H1MDn95AyezuGlOiW BKIc9xrpUOMF17Pw4Vwh0WR1Qfrk0maxO4tqI7wpbIp4ycKmovfSn8GBpjeCo3isqvpF EIZQ3FJ0aOoHx5KX+K5zKY1H27ANMAXMSZYLRGeD34oyW2HSilEHvYpj+x/78tQhEzRB YJPdg3VwNEUZ3xONIRiQr3kmb8R6uzQ3cp3Q0iQsPUqJsq5m3AOvauievLkdayatQrew LZKIm9rGtTB4jlzkfQW8Ud16DYjDOr+e/l0FCXHsqIOORDjs7RvNPBco4qzzaoZ3HPv/ d1mA== MIME-Version: 1.0 X-Received: by 10.52.93.233 with SMTP id cx9mr17062047vdb.112.1370425880187; Wed, 05 Jun 2013 02:51:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Jun 2013 17:51:20 +0800 Message-ID: Subject: Re: Recover dfs/name From: Ted Xu To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=20cf307f307ac7db8004de6523a4 X-Gm-Message-State: ALoCoQns/L910Mvx+pu2Wcxx66X/mT6AsvnhX2zGKvnWIa4BbXqwRKdt0lI0lIChuBX36OUyPGYW X-Virus-Checked: Checked by ClamAV on apache.org --20cf307f307ac7db8004de6523a4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Han, HDFS metadata cannot be fully reconstructed by datanode report. If you have deployed a checkpoint node/secondary namenode, you can copy the metadata to namenode and restart. This could recover most of the metadata. On Wed, Jun 5, 2013 at 5:30 PM, Han JU wrote: > Hi, > > The folder /tmp/hadoop-user/dfs/name is accidentally deleted by a > colleague (along with all other things in this directory), is there any > means to recover this directory? > I know the directory where dfs is located in every datanode. Can I > reconstruct the deleted files without formatting the hdfs? > > Thanks! > > -- > *JU Han* > > Software Engineer Intern @ KXEN Inc. > UTC - Universit=E9 de Technologie de Compi=E8gne > * **GI06 - Fouille de Donn=E9es et D=E9cisionnel* > > +33 0619608888 > --=20 Regards, Ted Xu --20cf307f307ac7db8004de6523a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Han,

HDFS metadata cannot be f= ully reconstructed by datanode report.=A0

If you have deployed a checkpoint node/secondary namenode, you can copy= the metadata to namenode and restart. This could recover most of the metad= ata.=A0


On Wed,= Jun 5, 2013 at 5:30 PM, Han JU <ju.han.felix@gmail.com> wrote:
Hi,

The = folder /tmp/hadoop-user/dfs/name is accidentally deleted by a colleague (al= ong with all other things in this directory), is there any means to recover= this directory?
I know the directory where dfs is located in every datanode. Can I reconstr= uct the deleted files without formatting the hdfs?

Thanks!=A0
<= br>
--
JU Han<= /b>

= Software Engineer Intern @ KXEN Inc.
UTC=A0=A0 - =A0Universit=E9 de Technologie de Compi=E8gne
=A0=A0=A0=A0 GI06 - Fouille de Donn=E9es et D=E9cisionnel




--
Regards,
Ted Xu
--20cf307f307ac7db8004de6523a4--