Accessing MongoDB from PySpark 1.6

52 views
Skip to first unread message

Raghu

unread,
Apr 20, 2016, 7:08:39 AM4/20/16
to mongodb-user
Currently I am able to access MongoDB from PySpark 1.5  using Mongo-Hadoop r1.5.2 version. Is it possible to access mongodb from PySpark 1.6? Using Mongo-Hadoop r1.5.2 version I could not able to connect. Please help.

Luke Lovett

unread,
Apr 20, 2016, 11:15:17 AM4/20/16
to mongodb-user
Hi Raghu,

Why can't you connect using 1.6? Can you please provide the code you are attempting plus any Exceptions that are raised?

Raghu

unread,
May 5, 2016, 3:26:00 AM5/5/16
to mongodb-user
I was getting the following error:

Error : ImportError: No module named pytz

Looking at the error it was very straight forward. After installing pytz package, I was able to access MongoDB from PySpark.

Thanks...
Reply all
Reply to author
Forward
0 new messages