hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15196) Zlib decompression fails when file having trailing garbage
Date Mon, 05 Feb 2018 07:02:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-15196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16352081#comment-16352081
] 

Brahma Reddy Battula commented on HADOOP-15196:
-----------------------------------------------

Read can be successful with *Hadoop {{text}} command* *for the same file* which uses the
{{GZIPInputStream from JDK.}}

But Using GzipCodec, decompressing is failing In both native and non-native cases.

*So the behavior of Text command is same as "gzip" Linux command, which ignores the trailing
garbage.*
{color:#FF0000}*But GZipCodec impl will not ignore and fails the whole operation.*{color}

> Zlib decompression fails when file having trailing garbage
> ----------------------------------------------------------
>
>                 Key: HADOOP-15196
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15196
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>            Priority: Major
>
> *When file has trailing garbage gzip will ignore.*
> {noformat}
> gzip -d 2018011309-js.rishenglipin.com.gz
> gzip: 2018011309-js.rishenglipin.com.gz: decompression OK, trailing garbage ignored
> {noformat}
>  *when we use same file and decompress,we got following.*
> {noformat}
> 2018-01-13 14:23:43,151 | WARN  | task-result-getter-3 | Lost task 0.0 in stage 345.0
(TID 5686, node-core-gyVYT, executor 3): java.io.IOException: unknown compression method
>         at org.apache.hadoop.io.compress.zlib.ZlibDecompressor.inflateBytesDirect(Native
Method)
>         at org.apache.hadoop.io.compress.zlib.ZlibDecompressor.decompress(ZlibDecompressor.java:225)
>         at org.apache.hadoop.io.compress.DecompressorStream.decompress(DecompressorStream.java:91)
>         at org.apache.hadoop.io.compress.DecompressorStream.read(DecompressorStream.java:85)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message