Hi Debasish,

The idea of shading is actually to hide the dependencies of Flink from the
user, such that he can use his own dependencies with appropriate versions.

That means, you add jackson with jackson-module-scala into your application
jar without worrying about Flink's jackson at all (just treat it as an
implementation detail).

On Tue, Dec 22, 2020 at 12:53 PM Debasish Ghosh <ghosh.debas...@gmail.com>
wrote:

> Hello -
>
> Flink 1.11 uses a shaded version of Jackson for serialization, which does
> not support jackson-module-scala. I need to register DefaultScalaModule for
> some Scala object serialization through Jackson. But when I do a
> mapper.registerModule(DefaultScalaModule), I get the following compilation
> error ..
>
> type mismatch;
> found   : com.fasterxml.jackson.module.scala.DefaultScalaModule.type
> required:
> org.apache.flink.kubernetes.shaded.com.fasterxml.jackson.databind.Module
>
> Any way how I can fix this ?
>
> regards.
> --
> Debasish Ghosh
> http://manning.com/ghosh2
> http://manning.com/ghosh
>
> Twttr: @debasishg
> Blog: http://debasishg.blogspot.com
> Code: http://github.com/debasishg
>


-- 

Arvid Heise | Senior Java Developer

<https://www.ververica.com/>

Follow us @VervericaData

--

Join Flink Forward <https://flink-forward.org/> - The Apache Flink
Conference

Stream Processing | Event Driven | Real Time

--

Ververica GmbH | Invalidenstrasse 115, 10115 Berlin, Germany

--
Ververica GmbH
Registered at Amtsgericht Charlottenburg: HRB 158244 B
Managing Directors: Timothy Alexander Steinert, Yip Park Tung Jason, Ji
(Toni) Cheng

Reply via email to