0

Have created a spark program in Scala IDE. Throwing an error when i try to execute

package sidSparkPackage

import org.apache.spark.SparkConf
import org.apache.spark.SparkContext

object firstSparkProgram {
def main(args: Array[String]): Unit = {

val conf = new SparkConf().setMaster("local").setAppName("My First Spark Program")

val sc = new SparkContext(conf)

val rdd = sc.parallelize(List(1,2,3))

//rdd.first()

println("Executed Successfully!!!!")    
 }
}

Error:

Error: Could not find or load main class 

Here is the screenshot

Sridhar
  • 61
  • 3
  • 17

1 Answers1

0

I guess it has something to do with your Build Configuration. It's hard to tell without further details.

Try to specify your main class in your project build configuration.

alamit
  • 392
  • 2
  • 10