Karthik Narayanan created NIFI-3190:
---------------------------------------

             Summary: 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.1.0, 1.0.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
            Priority: Minor






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

Reply via email to