Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play! and Spark incompatible Jackson versions

I have a problem running Spark 2.1 with Play! 2.5.9.

I get the following runtime exception:

com.fasterxml.jackson.databind.JsonMappingException: Incompatible Jackson version: 2.7.6

In the previous version of Spark (1.6), I managed to suppress this error adding in my build.sbt file:

dependencyOverrides ++= Set("com.fasterxml.jackson.core" % "jackson-databind" % "2.4.4")

But it doesn't work with Spark 2. I tried to change the version used in dependencyOverrides by 2.7.2 and 2.8.5, but I have no idea of which one I should use and why.

Any clue would be very appreciated ;)

like image 626
Simon Avatar asked Jan 04 '17 12:01

Simon


1 Answers

Using a version 2.6.x in dependencyOverrides works (I still don't know if there is an other way to find a version that works than testing one after an other).

like image 117
Simon Avatar answered Sep 29 '22 12:09

Simon