The last block of an HDFS block only occupies the required space. So a 4k file only consumes 4k on disk.

-- Owen

On Apr 2, 2009, at 18:44, javateck javateck <[email protected]> wrote:

 Can someone tell whether a file will occupy one or more blocks? for
example, the default block size is 64MB, and if I save a 4k file to HDFS, will the 4K file occupy the whole 64MB block alone? so in this case, do I do need to configure the block size to 10k if most of my files are less than
10K?

thanks,

Reply via email to