Hi all, is there a guide of how to use not shaded ...
# troubleshooting
є
Hi all, is there a guide of how to use not shaded version of Jackson in Flink job. When I try to use let's say the latest version of Jackson to SerDe Kafka messages - I always face some serialization issues. Although I tried to create Job from scratch, so there should be node version conflict issues. Using Flink 1.18, Java 11
l
Hello! Are you writing a Java Flink job and submitting a jar? Do you have more information about the "serialization issues"? Generally speaking, if internally Flink uses the shaded Jackson, and your JAR uses another one, conflicts should not happen and everything should go smooth 👍
є
> Are you writing a Java Flink job and submitting a jar? yes, writing Java Flink Job, but I am running it in K8s and submitting a
FlinkDeployment
CRD
l
Got it, Do you have more information about the "serialization issues"?
є
If you be kind, I could refactor job once again and send the output a bit later today 🙂
🤝 1
Well, looks like I should have declared jackson dependency explicitely in my Flink Job's pom.xml So now it's working
Previously I was using unshaded jackson libraries that were transitevely resolved
at least it's my asuumptions
l
Ah ok, let me see if I got it: You did not have any specific Jackson dependency in your job. You were "lucky" not hitting a
CallNotFound
because some dependency was filling the gap transitively. Specifying the dep fixed 👍 Good to now 🤝
є
looks like this 🙂
🚀 1