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
In my case, I install spark by pip3 install pyspark on macOS system, and the error caused by incorrect SPARK_HOME variable. It works when I run command like below: