Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting java.lang.NoSuchMethodError org.apache.iceberg.util.JsonUtil.mapper() With Hive catalog #9848

Closed
ismailsimsek opened this issue Mar 1, 2024 · 4 comments
Labels
question Further information is requested

Comments

@ismailsimsek
Copy link
Contributor

Query engine

Java API and Hive Catalog

Question

When using iceberg with Hive catalog getting following error on some environments. The error randomly appears in different environments

Full stack trace and configuration is here memiiso/debezium-server-iceberg#271 (comment)

Producer failure: java.lang.NoSuchMethodError: 'org.apache.iceberg.shaded.com.fasterxml.jackson.databind.ObjectMapper org.apache.iceberg.util.JsonUtil.mapper()'

Original report memiiso/debezium-server-iceberg#271

@ismailsimsek ismailsimsek added the question Further information is requested label Mar 1, 2024
@nastra
Copy link
Contributor

nastra commented Mar 1, 2024

@ismailsimsek this is typically a sign of mixed dependency versions on the classpath. I think the problem is that Debezium is using Spark 3.3, which requires Jackson 2.13.4 but Debezium uses Jackson 2.14.2.

If you want to use Jackson 2.14.2, then you'd need to upgrade Spark to 3.4.

@nastra
Copy link
Contributor

nastra commented Mar 1, 2024

Additionally, make sure to sync up the AWS SDK version to what the respective Iceberg version is using. The same applies for GCP/Azure dependencies. Otherwise you'll be having the same issue with those dependencies

@ismailsimsek
Copy link
Contributor Author

Thank you @nastra i will check it

@ismailsimsek
Copy link
Contributor Author

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants