iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

Failed to start the Flink task (write iceberg)

Open 95liu opened this issue 4 years ago • 4 comments

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

95liu avatar Aug 25 '22 10:08 95liu

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 👍🏻

Fokko avatar Aug 25 '22 10:08 Fokko

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.

msb1 avatar Aug 30 '22 14:08 msb1

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.

github-actions[bot] avatar Feb 27 '23 00:02 github-actions[bot]

This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'

github-actions[bot] avatar Mar 14 '23 00:03 github-actions[bot]