Re: Spark Getting data from MongoDB in JAVA

2016-06-13 Thread Asfandyar Ashraf Malik
Yes, It was a dependency issue. I was using incompatible versions. The command *mvn dependency:tree -Dverbose *helped me fix this. Cheers Asfandyar Ashraf Malik Mobile: +49 15751174449 <%2B49%20151%20230%20130%2066> Email: asfand...@kreditech.com <%2B49%20151%20230%20130%2066>

Re: Spark Getting data from MongoDB in JAVA

2016-06-10 Thread Asfandyar Ashraf Malik
> > 2016-06-10 11:39 GMT+02:00 Asfandyar Ashraf Malik <asfand...@kreditech.com > >: > >> Hi, >> I am using Stratio library to get MongoDB to work with Spark but I get >> the following error: >> >> java.lang.NoSuchMe

Spark Getting data from MongoDB in JAVA

2016-06-10 Thread Asfandyar Ashraf Malik
Hi, I am using Stratio library to get MongoDB to work with Spark but I get the following error: java.lang.NoSuchMethodError: org.apache.spark.sql.catalyst.ScalaReflection This is my code. --- *public static