Hi Hemanth,

You can view this on your browser pointing to your HTTP server on NN.
http://NN_servername:50070

50070 is the default port, unless you have given it some other value in
your configuration.
Navigate to the directory where your file is and click on the file. You
will be shown all the information about the blocks on the page.

Alternatively, you can try the fsck command
hadoop fsck file_path -files -blocks -racks

Thanks,
Anirudh

On Sat, Dec 24, 2011 at 10:10 AM, Hemanth Makkapati <ma...@vt.edu> wrote:

> Hi,
>
> In HDFS, how do I find out what are all the blocks that belong to a
> particular file and where each one of these blocks (incl. the replicas) is
> located?
>
> Thank you.
>
> Regards,
> Hemanth Makkapati
>

Reply via email to