hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Lipcon <t...@cloudera.com>
Subject Re: Question about HDFS Architecture
Date Tue, 25 Aug 2009 04:43:24 GMT
On Mon, Aug 24, 2009 at 6:40 PM, Konstantin Shvachko <shv@yahoo-inc.com>wrote:

> Harold,
> Both answers by Aaron were incorrect.
> > Does the client cache this information, or does it always talk to the
> namenode first?
> Yes, the client caches replica locations received from the name-node.
> On open() it receives locations of the first 10 blocks of the file.
> In most cases these are all file blocks. If not then the client will
> get another portion of blocks when needed, and will also cache them.

This is only within a single DFSInputStream. The block location cache does
not persist across re-opens of the same file. As I read the original
question, it was about longer-term caching, not just keeping state during a
single DFSInputStream.


View raw message