hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-7323) Add capability to resolve compression codec based on codec name
Date Mon, 23 May 2011 23:27:47 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-7323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alejandro Abdelnur updated HADOOP-7323:
---------------------------------------

    Attachment: HADOOP-7323.patch

The codec alias is taken from the Codec short class name (classname without package) after
removing the 'Codec' postfix if present, else the full short class name is used as alias.

The patch adds to the CompressionCodecFactory.getCodecByClassName()method an alias lookup
fallback if the codec class has not been found (this preserves existing behavior).

The alias lookup is case-insensitive.


> Add capability to resolve compression codec based on codec name
> ---------------------------------------------------------------
>
>                 Key: HADOOP-7323
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7323
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: io
>    Affects Versions: 0.21.0
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.22.0
>
>         Attachments: HADOOP-7323.patch
>
>
> When setting up a compression codec in an MR job the full class name of the codec must
be used.
> To ease usability, compression codecs should be resolved by their codec name (ie 'gzip',
'deflate', 'zlib', 'bzip2') instead their full codec class name.
> Besides easy of use for Hadoop users who would use the codec alias instead the full codec
class name, it could simplify how HBase resolves loads the codecs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message