Failed to start the Flink task (write iceberg)
Apache Iceberg version
No response
Query engine
No response
Please describe the bug 🐞
use iceberg-flink-runtime:jar:0.12.1
Caused by: java.lang.IllegalStateException: org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.SI
at org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.LocalCacheFactory.newBoundedLocalCache(LocalCacheFactory.java:101)
at org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3357)
at org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3353)
at org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.Caffeine.build(Caffeine.java:995)
at org.apache.iceberg.SchemaParser.<clinit>(SchemaParser.java:272)
... 29 more
Caused by: java.lang.NoSuchMethodException: org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.SI.<init>(org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.Caffeine, org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.CacheLoader, boolean)
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getDeclaredConstructor(Class.java:2178)
at org.apache.iceberg.shaded.com.github.benmanes.caffeine.cache.LocalCacheFactory.newBoundedLocalCache(LocalCacheFactory.java:96)
... 33 more
Hey @95liu, thanks for opening a ticket. Which version of Flink are you using? Please note that you're using a rather old version of Iceberg, I would recommend updating that as well 👍🏻
If you are using gradle and creating shadow jar; do not use minimize()... Was doing build with shadowJar { minimize() zip64 true } in build.gradle. Had identical error message to what is shown in first post above.
Changed to shadowJar { zip64 true } in build.gradle and error is gone. Appears that minimize() was removing shaded caffeine from fat jar. Could probably have problem if using maven shaded plugin as well.
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'