You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Piotr Wikieł (JIRA)" <ji...@apache.org> on 2016/06/23 16:24:16 UTC

[jira] [Comment Edited] (AVRO-1862) AvroOutputFormat saves compressed avrò files without respecting codec's default extension

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

Piotr Wikieł edited comment on AVRO-1862 at 6/23/16 4:23 PM:
-------------------------------------------------------------

[~rdblue] yep, it's definitely true so I've attached new patch. Please take a look at it and let me know if everything is ok.


was (Author: wikp):
[~rdblue] yep, it's definitely true so I've prepared corrected patch. Please take a look at it and let me know if something is wrong. 

> AvroOutputFormat saves compressed avrò files without respecting codec's default extension
> -----------------------------------------------------------------------------------------
>
>                 Key: AVRO-1862
>                 URL: https://issues.apache.org/jira/browse/AVRO-1862
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Piotr Wikieł
>            Priority: Minor
>         Attachments: AVRO-1862-1.patch, AVRO-1862.patch
>
>
> Common pattern in naming compressed files is giving them extension derived from compression codec, for example: {{.gz}}, {{.zip}}, {{.bz2}}. 
> {{AvroOutputFormat}} currently does not respect this convention. 
> I've adapted some code from Hadoop's {{TextOutputFormat}} in backward-compatible manner adding following {{JobConf}} property:
> {{avro.mapred.output.extension.from-codec}} ({{boolean}}, default: {{false}}) - when set to {{true}}, extension will be changed according to above rule.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)