Hi Libo,
DFSClient.getBlockLocations, is this what you want?
Regards,
Wangda Tan
On Fri, Mar 28, 2014 at 10:03 AM, Libo Yu wrote:
> Hi all,
>
> "hadoop path fsck -files -block -locations" can list locations for all
> blocks in the path.
> Is it possible to list all blocks and the block locatio
Thanks, it is useful. If I know the block I'd, how to find out its location?
From: wheele...@gmail.com
Date: Fri, 28 Mar 2014 10:12:10 +0800
Subject: Re: How to get locations of blocks programmatically?
To: user@hadoop.apache.org
Hi Libo,DFSClient.getBlockLocations, is this what you
Yes, use
http://hadoop.apache.org/docs/stable2/api/org/apache/hadoop/fs/FileSystem.html#getFileBlockLocations(org.apache.hadoop.fs.Path,
long, long)
On Fri, Mar 28, 2014 at 7:33 AM, Libo Yu wrote:
> Hi all,
>
> "hadoop path fsck -files -block -locations" can list locations for all
> blocks in th
have you looked into FileSystem API this is hadoop v2.2.0
http://hadoop.apache.org/docs/r2.2.0/api/org/apache/hadoop/fs/FileSystem.html
does not exist in
http://hadoop.apache.org/docs/r1.2.0/api/org/apache/hadoop/fs/FileSystem.html
org.apache.hadoop.fs.RemoteIteratorhttp://hadoop.apache.org/do
FileSystem.getFileBlockLocations(...)
Regards,
*Stanley Shi,*
On Fri, Mar 28, 2014 at 10:03 AM, Libo Yu wrote:
> Hi all,
>
> "hadoop path fsck -files -block -locations" can list locations for all
> blocks in the path.
> Is it possible to list all blocks and the block locations for a given pat