hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brahma Reddy <brahmared...@huawei.com>
Subject RE: Get Replication level of a file in HDFS.
Date Fri, 30 Sep 2011 03:41:15 GMT
Hi Ajit,

 

 

You can get the replication of a file using two ways like following

 

i)through command line

 

./hadoop fsck /filename -files -blocks -racks

 

It'll give detailed info about the file

 

ii)filestatus object(java)

 

 

****************************************************************************
***********
This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

Hi,

 

Is there any way to get replication level of a file in HDFS?

 

thanks,

Ajit.


Mime
View raw message