Hello, a quick question, I'm using AvroParquetWrit...
# troubleshooting
x
Hello, a quick question, I'm using AvroParquetWriter to write data to parquet files on s3. But I didn't find any configuration parameters to compress the parquet file, for example, snappy compression. Is there anyway to configure the compression when writing to s3?
y
You can do it by passing the compression to the builder:
Copy code
AvroParquetWriter.builder(path)
   .withSchema(...)
   .withCompressionCodec(CompressionCodecName.SNAPPY)
   .build();
x
thank you!