hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: A question about reading one block
Date Sun, 28 Oct 2012 02:41:59 GMT

Assuming you know how to get the block info out of a file's metadata,
opening a file for read (with FileSystem.open API, etc.) with an
offset and length set to to match that of a block, will open and read
only that block.

On Sat, Oct 27, 2012 at 2:19 AM, Vivi Lang <sqlxweiwei@gmail.com> wrote:
> Hi guys,
> I am writing a program which need the data of several specific blocks (I
> know the blockinfo of those blocks), if I use the Hadoop 0.20, is there
> any  funtion which can help me to retrieve the content of block?
> Thanks,
> Vivi

Harsh J

View raw message