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.


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
Skype id: avishek_2.
Ph:(0) 8553177744 / 080 - 41103383