Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS, mail # user - Re: how to locate the replicas of a file in HDFS?


Copy link to this message
-
Re: how to locate the replicas of a file in HDFS?
Sandeep Nemuri 2013-06-04, 10:14
Try this command
 hadoop fsck <file path> -files -blocks
On Tue, Jun 4, 2013 at 3:41 PM, zangxiangyu <[EMAIL PROTECTED]> wrote:

>  hadoop fsck * <path>*  -files -blocks -locations –racks****
>
> ** **
>
> replace <path> with real path J****
>
> ** **
>
> *From:* 一凡 李 [mailto:[EMAIL PROTECTED]]
> *Sent:* Tuesday, June 04, 2013 12:49 PM
> *To:* [EMAIL PROTECTED]
> *Subject:* how to locate the replicas of a file in HDFS?****
>
> ** **
>
> Hi,****
>
> ** **
>
> Could you tell me how to locate where store each replica of a file in HDFS?
> ****
>
> ** **
>
> Correctly speaking, if I create a file in HDFS(replicate factor:3),how to
> find the DataNodes which store its each block and replicas? ****
>
> ** **
>
>  ****
>
> Best Wishes,
> Yifan*
> ____________________*
>
> * *
>

--
--Regards
  Sandeep Nemuri