0

I am trying to create a simple Hello World program with Scala to run on on Apache Spark 3.1.1. However I am getting the following error on spark-submit

enter image description here

I am using the below command:

spark-submit --class SparkDemo --master local --executor-memory 800m /Users/souravhazra/Downloads/SparkDemo.jar

This is my Scala code:

object SparkDemo {
   def main(args: Array[String]): Unit = {    
       println("Hello World")
   }
}

This is my build.sbt

enter image description here

I am stuck in this issue over a couple of days. Please help. Thanks in advance.

Sourav Hazra
  • 23
  • 1
  • 4

0 Answers0