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.


1 comment :

Avishek Priyadarshi said...

I really appreciate the information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in #APACHE #SPARK & #SCALAS, kindly Contact MaxMunus
MaxMunus Offer World Class Virtual Instructor-led training on #APACHE #SPARK & #SCALA. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 1,00,000 + training in India, USA, UK, Australia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain, and UAE etc.
Avishek Priyadarshi
MaxMunus
E-mail: avishek@maxmunus.com
Skype id: avishek_2.
Ph:(0) 8553177744 / 080 - 41103383
www.MaxMunus.com