Thursday, May 18, 2017

Loading Postgres data into Spark



When loading data from postgres in Spark 2.11, I got the below exception. 
java.lang.NoClassDefFoundError: com/fasterxml/jackson/module/scala/DefaultScalaModule$

All you need to fix is to add the following dependency.

   com.fasterxml.jackson.module
   jackson-module-scala_2.11
   2.4.5-1

Hope it helps.