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:
just add .setMaster("local") to your code as shown below:
.setMaster("local")
val conf = new SparkConf().setAppName("Second").setMaster("local")
It worked for me ! Happy coding !