hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: org.apache.hadoop.hdfs.protocol.Block, which class actually holds the data bytes in it?
Date Tue, 22 Feb 2011 17:32:55 GMT
Hello,

On Tue, Feb 22, 2011 at 9:30 PM, Weishung Chung <weishung@gmail.com> wrote:
> I have a question about the Block class, where is the actual data bytes?
> Which class holds the data bytes?
> Thank you so much :)

The Block in itself holds all details needed to retrieve a block
replica from the DN (it is the most primitive class for a DN's data).

If you want to know which low-level classes are used to 'read' out the
Block, you're looking for classes BlockReader (Requesting side) and
BlockSender (Replying side).

-- 
Harsh J
www.harshj.com

Mime
View raw message