What Should I Do If the Parquet Brotli Compression Format Cannot Be Used in Spark?
Symptom
The code indicates that the Brotli compression format is supported, but Spark SQL tasks using the Brotli compression format fail with an unsupported format error during execution.

Possible Causes
The Parquet dependency declaration references org.apache.hadoop.io.compress.BrotliCodec, but this class is missing from Hadoop releases.
Solutions
- Solution 1: Use the ORC format, which supports BrotliCodec.
- Solution 2: Use Spark jobs and introduce a third-party package that includes the org.apache.hadoop.io.compress.BrotliCodec implementation.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot