iceberg
iceberg copied to clipboard
Cannot find constructor for interface org.apache.parquet.column.page.PageWriteStore?
Query engine
No response
Question
use iceberg java api to write data, The error message is as follows:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.iceberg.parquet.Parquet$WriteBuilder.build(Parquet.java:268)
at Iceberg.writeFile(Iceberg.java:113)
at Iceberg.main(Iceberg.java:200)
Caused by: java.lang.RuntimeException: Cannot find constructor for interface org.apache.parquet.column.page.PageWriteStore
Missing org.apache.parquet.hadoop.ColumnChunkPageWriteStore(org.apache.parquet.hadoop.CodecFactory$BytesCompressor,org.apache.parquet.schema.MessageType,org.apache.parquet.bytes.ByteBufferAllocator,int) [java.lang.NoSuchMethodException: org.apache.parquet.hadoop.ColumnChunkPageWriteStore.
my part pom.xml:
It looks you have two versions of parquet in your dependencies, 1.11.1 and 1.12.0