You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Manu S <ma...@gmail.com> on 2012/05/03 10:15:09 UTC

How to fetch the block names from fsimage/edits file?

Hi All,

Can we find out the complete block names from the fsimage we have?

Scenario:
Accidentally we had lost the hdfs data. We have the previous fsimage before
the data loss. We have restored some data using some data recovery tools.
The recovered files are starting with *blk_<string>*.   I read the fsimage
using *strings *command, but that doesn't give the block name details.

Thanks,
Manu S

Re: How to fetch the block names from fsimage/edits file?

Posted by JunYong Li <li...@gmail.com>.
use $HADOOP_HOME/bin/hadoop ovi command

2012/5/3 Manu S <ma...@gmail.com>

> Hi All,
>
> Can we find out the complete block names from the fsimage we have?
>
> Scenario:
> Accidentally we had lost the hdfs data. We have the previous fsimage before
> the data loss. We have restored some data using some data recovery tools.
> The recovered files are starting with *blk_<string>*.   I read the fsimage
> using *strings *command, but that doesn't give the block name details.
>
> Thanks,
> Manu S
>



-- 
Regards
Junyong

RE: How to fetch the block names from fsimage/edits file?

Posted by Amith D K <am...@huawei.com>.
Use
$HADOOP_HOME/bin/hdfs oiv/oie

in 0.23 and above versions


________________________________________
From: JunYong Li [lijy83@gmail.com]
Sent: Thursday, May 03, 2012 5:04 PM
To: common-user@hadoop.apache.org
Subject: Re: How to fetch the block names from fsimage/edits file?

use $HADOOP_HOME/bin/hadoop ovi

2012/5/3 Manu S <ma...@gmail.com>

> Hi All,
>
> Can we find out the complete block names from the fsimage we have?
>
> Scenario:
> Accidentally we had lost the hdfs data. We have the previous fsimage before
> the data loss. We have restored some data using some data recovery tools.
> The recovered files are starting with *blk_<string>*.   I read the fsimage
> using *strings *command, but that doesn't give the block name details.
>
> Thanks,
> Manu S
>



--
Regards
Junyong

Re: How to fetch the block names from fsimage/edits file?

Posted by JunYong Li <li...@gmail.com>.
use $HADOOP_HOME/bin/hadoop ovi

2012/5/3 Manu S <ma...@gmail.com>

> Hi All,
>
> Can we find out the complete block names from the fsimage we have?
>
> Scenario:
> Accidentally we had lost the hdfs data. We have the previous fsimage before
> the data loss. We have restored some data using some data recovery tools.
> The recovered files are starting with *blk_<string>*.   I read the fsimage
> using *strings *command, but that doesn't give the block name details.
>
> Thanks,
> Manu S
>



-- 
Regards
Junyong

Re: How to fetch the block names from fsimage/edits file?

Posted by JunYong Li <li...@gmail.com>.
use $HADOOP_HOME/bin/hadoop ovi

2012/5/3 Manu S <ma...@gmail.com>

> Hi All,
>
> Can we find out the complete block names from the fsimage we have?
>
> Scenario:
> Accidentally we had lost the hdfs data. We have the previous fsimage before
> the data loss. We have restored some data using some data recovery tools.
> The recovered files are starting with *blk_<string>*.   I read the fsimage
> using *strings *command, but that doesn't give the block name details.
>
> Thanks,
> Manu S
>



-- 
Regards
Junyong