gards,
> Uma
>
> From: kartheek muthyala [kartheek0...@gmail.com]
> Sent: Tuesday, November 29, 2011 6:07 PM
> To: hdfs-dev@hadoop.apache.org; hdfs-user
> Subject: blockID generation
>
> Hi all,
> I am interested in exploring how the blockID is generated
To: hdfs-dev@hadoop.apache.org; hdfs-user
Subject: blockID generation
Hi all,
I am interested in exploring how the blockID is generated in hadoop world
by the namenode. Any pointers to the class/method which takes care of this
generation?
Thanks in advance,
~Kartheek.
Kartheek,
(- hdfs-user (bcc'd))
Its simple enough to trace back a FileSystem -> DFSClient -> NameNode call in
code, for the operation of creating a file (and thereafter a block).
What you are looking for, specifically, is in FSNamesystem#allocateBlock(…).
On 29-Nov-2011, at 6:07 PM, kartheek m