Re: blockID generation

2011-11-29 Thread kartheek muthyala
Thanks you all for the reply. ~Kartheek On Tue, Nov 29, 2011 at 6:30 PM, Uma Maheswara Rao G wrote: > you can find the code directly in FSNameSystem#allocateBlock > It is just a random long number and will ensure that blockid is not > created already by NN. > Regards, > Uma >

RE: blockID generation

2011-11-29 Thread Uma Maheswara Rao G
you can find the code directly in FSNameSystem#allocateBlock It is just a random long number and will ensure that blockid is not created already by NN. Regards, Uma From: kartheek muthyala [kartheek0...@gmail.com] Sent: Tuesday, November 29, 2011 6:07 PM To

Re: blockID generation

2011-11-29 Thread Harsh J
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