I have a simple program in Spark:
/* SimpleApp.scala */ import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.S
There are also some causes of this same error message other than those posted here.
For a spark-on-mesos cluster, make sure you have java8 or newer java version on mesos slaves.
spark-on-mesos
mesos slaves
For spark standalone, make sure you have java8 (or newer) on the workers.
spark standalone
java8
workers