Home > Software design >  java.lang.NoClassDefFoundError: org/apache/flink/table/types/logical/LogicalTypeRoot
java.lang.NoClassDefFoundError: org/apache/flink/table/types/logical/LogicalTypeRoot

Time:07-18

I am trying to read parquet files via the ParquetAvroInputFormat but it throws NoClassDefFoundError exceptions. I find the class in the flink-table-common library.

It is in the path org.apache.flink.table.types.logical.LogicalTypeRoot but the org.apache.flink.table and after that seems could not be found.

It is a Scala project, flink-table-api-scala-bridge is also included.

Any advice is welcome.

CodePudding user response:

Different Java versions caused the problem.

Project Structure used Azul 13, while the application used Java 11 corretto.

  • Related