flink InputStream of class class org.apache.commons.compress.archivers.zip.ZipFile$1 is not implementing InputStreamStatistics

前端 未结 1 1052
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 18:57

I was trying to load an excel into POI workbook in a Flink program. Has an error like this.

Caused by: java.lang.IllegalArgumentException: InputStream of class class org

相关标签:
1条回答
  • 2021-01-25 19:46

    You have to include a newer version of commons-compress and shade it (there ar different plugins in Maven, Gradle, SBT). Alternatively, you can use the HadoopOffice library, which has native Flink support, to read/write Excel files (https://github.com/zuinnote/hadoopoffice/wiki) and it has an example on how to shade the dependency correctly (see https://github.com/ZuInnoTe/hadoopoffice/wiki/Using-Apache-Flink-to-read-write-Excel-documents)

    0 讨论(0)
提交回复
热议问题