Why does spark-submit and spark-shell fail with “Failed to find Spark assembly JAR. You need to build Spark before running this program.”?

前端 未结 9 1732
一个人的身影
一个人的身影 2020-12-17 07:33

I was trying to run spark-submit and I get \"Failed to find Spark assembly JAR. You need to build Spark before running this program.\" When I try to run spark-shell

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 08:13

    Just to add to @jurban1997 answer.

    If you are running windows then make sure that SPARK_HOME and SCALA_HOME environment variables are setup right. SPARK_HOME should be pointing to {SPARK_HOME}\bin\spark-shell.cmd

提交回复
热议问题