Anyone able to write to an Iceberg table using AWS...
# troubleshooting
r
Anyone able to write to an Iceberg table using AWS Managed Flink? I am trying to use the iceberg-flink-runtime to connect to our S3 Iceberg tables, using Hive catalog, and running into the error
py4j.protocol.Py4JJavaError: An error occurred while calling o16.executeSql. : java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
Despite the class being present in the fat jar containing the Hive connector and Iceberg runtime. The same code and jar works on a local cluster. Appreciate any ideas on how to resolve this!
t
It appears that MSF does not load certain classes (I believe custom connectors etc) when you upload your fat jar. I hear the fix is on their roadmap, will share a more detailed explanation if/when I have one.
Ok confirmed it was an issue with Filesystems - so this is likely unrelated > Team confirmed it that it can’t be implemented as it require additional class to be loaded at cluster bootstrap time. (Reference - https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/filesystems/overview/#adding-a-new-pluggable-file-system-implementation)
java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
You can bundle Hadoop core into your execution jar and try again
r
Thanks for the suggestion. + @Tianji Li AWS Support mentioned Iceberg integration isn't possible with MSF so I believe we moved on to look at different deployment solutions. It'd be great if so though, we like MSF otherwise.
t
AWS Support mentioned Iceberg integration isn't possible with MSF
Interesting, cause that's what I'm currently working on. Did they mention why ?
r
They pointed us to EMR since there is an example there and support for Iceberg
Copy code
Based on my previous discussion with the members of the team, they have suggested that you can consider the Amazon EMR [1] as an alternative if you wish, for this particular set-up as those will come with the Hadoop dependencies pre-installed and runs on YARN.
If there's an example of MSF with Hive and Iceberg we would be glad to give it a try. Our setup is we are using Hive Metastore and S3 to store our Iceberg tables, and would like to write there with our streaming data in Kafka (MSK). To talk to Hive in Flink we are using the Hive catalog here.
👀 1
t
Gotcha, I don't plan on using Hive at all so I might not be able to recreate that example. I would at least try to get all the classes into the execution uber jar and see what errors you get. I'll also update you if/when Im able to write to Iceberg (in Glue) using MSF
r
Thanks!
👍 1
t
No, we wont be open sourcing it cause it interacts with an internal proprietary dataplane. Its pretty much a light wrapper around the OS catalog, that has some post-commit actions to sync metadata to our internal data plane for backwards compatibility while we test out iceberg. So I told the FlinkSink to use the wrapper catalog, thats all. But this proves that MSF doesn't have any issues running through any of the OS stuff.
The outstanding question I think, is Hive. But I also had to bundle every dependency I needed to get past
NoClassDefFoundError
like you have above, I think you should try getting the hive one in your jar and it should be work 🤞.