hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Srinivas <sures...@yahoo-inc.com>
Subject Re: adding functionality to retrieve file name from a block
Date Wed, 09 Dec 2009 01:12:13 GMT
There is no need to store file name in the block. Given block you can get BlockInfo, which
has INodeFile. From this you can get the corresponding file name. As Dhruba said, I am interested
in the use-case as well.


On 12/3/09 1:25 AM, "Dhruba Borthakur" <dhruba@gmail.com> wrote:

I think that if we add the filename of a file to each block, it adds
additional complexity to the implementation of the filesystem. what is the
use-case that you have in mind?

thanks,
dhruba

On Wed, Dec 2, 2009 at 11:30 PM, Jack Li <jack.li@duke.edu> wrote:

>
> I am trying to add functionality so that a block can store the name of the
> file it is associated with. Having looked at the HDFS source code, would
> this implementation be added correctly by make some modifications to the
> INodeFile.java and Block.java files? Are there some more modifications I am
> missing that need to be added for this functionality to be possible? Thanks
>
> Jack
>



--
Connect to me at http://www.facebook.com/dhruba


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message