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.

Reply via email to