I was able to compile your code in Eclipse.
I ran it using the data in your comments, but I also see the
NoSuchMethodError you mentioned.
It seems to run fine until the call to calculateZVector(...)
It appears that org.apache.commons.math3.util.Pair is not Serializable, so
that's one potential pro
Sure, I uploaded the code on pastebin: http://pastebin.com/90Hynrjh
On Mon, May 12, 2014 at 12:27 AM, Madhu wrote:
> No, you don't need to do anything special to get it to run in Eclipse.
> Just add the assembly jar to the build path, create a main method, add your
> code, and click the green "ru
No, you don't need to do anything special to get it to run in Eclipse.
Just add the assembly jar to the build path, create a main method, add your
code, and click the green "run" button.
Can you post your code here?
I can try it in my environment.
-
Madhu
https://www.linkedin.com/in/msiddal
Madhu,
Thank you! I now switched to eclipse and imported the assembly jar, the IDE
successfully finds the imports. But when I try to run my code I get
"java.lang.NoClassDefFoundError:
org/apache/spark/api/java/function/PairFunction" is there anything special
to consider when I want to run my devel
Alessandro,
I'm using Eclipse, IntelliJ settings will be similar.
I created a standard project, without maven.
For me, the easiest way was to add this jar to my Eclipse project build
path:
/assembly/target/scala-2.10/spark-assembly-x.x.x-hadoop1.0.4.jar
It works for either Java or Scala plugin.