shaqf commented on issue #5345:
URL: https://github.com/apache/hudi/issues/5345#issuecomment-1103395668

   Hadoop3.*.* use like this:
   
   `
   112     try (FSDataOutputStream outputStream = new FSDataOutputStream(baos, 
null)) {
   113       try (HoodieParquetStreamWriter<IndexedRecord> parquetWriter = new 
HoodieParquetStreamWriter<>(outputStream, avroParquetConfig)) {
   114         for (IndexedRecord record : records) {
   115           String recordKey = getRecordKey(record).orElse(null);
   116           parquetWriter.writeAvro(recordKey, record);
   117         }
   118         outputStream.flush();
   119       }
   120     }
   `
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to