You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (JIRA)" <ji...@apache.org> on 2016/12/12 22:21:58 UTC

[jira] [Assigned] (NIFI-3190) don't try to load compression codec, when compression codec is set to None

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

Bryan Bende reassigned NIFI-3190:
---------------------------------

    Assignee: Bryan Bende

> don't try to load compression codec, when compression codec is set to None
> --------------------------------------------------------------------------
>
>                 Key: NIFI-3190
>                 URL: https://issues.apache.org/jira/browse/NIFI-3190
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: A lot of users , come across the classnotfound error when they try to use the hdfs processors. The users copy his hadoop client configs and gets a classnotfoundexception, when he has entries for LZO in the config files. To resolve this the user has to remove reference to LZO codes from his config files. 
> A simpler solution to stop this exception from happening would be to check if Compression Codec is set to None then skip the part where the codecs are loaded. 
> org.apache.hadoop.io.compress.CompressionCodec codec = null;
>         CompressionType compressionType = CompressionType.valueOf(context.getProperty(COMPRESSION_CODEC).getValue());
>         if (compressionType != CompressionType.NONE) {
>             String compressionClassname = compressionType.toString();
>             CompressionCodecFactory ccf = new CompressionCodecFactory(configuration);
>             codec = ccf.getCodecByClassName(compressionClassname);
>         }
>         return codec;
>            Reporter: Karthik Narayanan
>            Assignee: Bryan Bende
>            Priority: Minor
>




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