You need: 
http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/fs/FileSystem.html#getFileBlockLocations(org.apache.hadoop.fs.FileStatus,
long, long)

On Sat, Dec 24, 2011 at 11:40 PM, Hemanth Makkapati <[email protected]> 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



-- 
Harsh J

Reply via email to