You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Caleb Fenton (JIRA)" <ji...@apache.org> on 2016/08/23 18:48:21 UTC

[jira] [Created] (NIFI-2637) Allow CreateHadoopSequenceFile compression codec to be configurable

Caleb Fenton created NIFI-2637:
----------------------------------

             Summary: Allow CreateHadoopSequenceFile compression codec to be configurable
                 Key: NIFI-2637
                 URL: https://issues.apache.org/jira/browse/NIFI-2637
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Caleb Fenton
            Priority: Minor


Currently, when creating a Hadoop Sequence File, the compression codec is hardcoded as DefaultCodec, which is deflate. It would be better if this was configurable or the codec is inferred from the Hadoop configuration.

Here's the relevant line in code:
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/SequenceFileWriterImpl.java#L100

Here's the relevant block of code where the writer is created with the DefaultCodec:
{noformat}
final SequenceFile.Writer writer = SequenceFile.createWriter(configuration,
                                SequenceFile.Writer.stream(fsDataOutputStream),
                                SequenceFile.Writer.keyClass(Text.class),
                                SequenceFile.Writer.valueClass(InputStreamWritable.class),
                                SequenceFile.Writer.compression(compressionType, new DefaultCodec())))
{noformat}



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