I have an Spark app which runs with no problem in local mode,but have some problems when submitting to the Spark cluster.
The error msg are as follows:
I used this SparkContext constructor instead, and errors were gone:
val sc = new SparkContext("local[*]", "MyApp")