different behaviour of the same code

2014-10-31 Thread lieyan
I am trying to write some sample code under IntelliJ IDEA. I start with a non-sbt scala project. In order that the program compile, I add *spark-assembly-1.1.0-hadoop2.4.0.jar* in the *spark/lib* directory as one external library of the IDEA project.

Re: different behaviour of the same code

2014-11-03 Thread lieyan
You are right. You pointed out the very cause of my problem. Thanks. I have to specify the path to my jar file. The solution can be found in an earlier post. http://apache-spark-user-list.1001560.n3.nabble.com/ClassNotFoundException-with-simple-Spark-job-on-cluster-td932.html -- View