I have a Pythons script that I was able to send Spark as follows:
/opt/spark/bin/spark-submit
Now I am trying to send the Scala program in the same way:
/opt/spark/bin/spark-submit
As a result, you receive the following error message:
Error: Cannot load main class from JAR file:/home/myname/spark/test.scala
Run with
The Scala program itself is a Hello World program:
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, world!")
}
}
What am I doing wrong?
Roman source
share