-Re: Doubts on compressed file
Harsh J 2012-11-07, 12:45
Yes all files are split into block-size chunks in HDFS. HDFS is
agnostic about what the file's content is, and its attributes (such as
compression, etc.). This is left to the file reader logic to handle.
When a GZip reader initializes, it reads the whole file length, across
all the blocks the file may have, which HDFS lets you do transparently
by just requesting the data length to read. It ends up reading blocks
serially for you, and your app just has to take care of reading actual
gzip data without worrying about block split boundaries.
On Wed, Nov 7, 2012 at 5:52 PM, Ramasubramanian Narayanan
<[EMAIL PROTECTED]> wrote:
> If a zip file(Gzip) is loaded into HDFS will it get splitted into Blocks and
> store in HDFS?
> I understand that a single mapper can work with GZip as it reads the entire
> file from beginning to end... In that case if the GZip file size is larget
> than 128 MB will it get splitted into blocks and stored in HDFS?