Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/368#discussion_r60384217
--- Diff:
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/SequenceFileWriterImpl.java
---
@@ -94,8 +94,10 @@ public void process(InputStream in, OutputStream out)
throws IOException {
try (final FSDataOutputStream fsDataOutputStream = new
FSDataOutputStream(bwos, new Statistics(""));
final SequenceFile.Writer writer =
SequenceFile.createWriter(configuration,
- fsDataOutputStream, Text.class,
InputStreamWritable.class, compressionType,
- new DefaultCodec())) {
+
SequenceFile.Writer.stream(fsDataOutputStream),
+ SequenceFile.Writer.keyClass(Text.class),
+
SequenceFile.Writer.valueClass(InputStreamWritable.class),
+
SequenceFile.Writer.compression(compressionType, new DefaultCodec()))) {
--- End diff --
Is it expected to use DefaultCodec? I saw we have a property for
compression codec, shouldn't we propose something to use this property at this
moment?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---