Can't find spark submit when typing spark-shell
<p>I've been following this tutorial to install spark for scala:
<a href="https://www.tutorialspoint.com/apache_spark/apache_spark_installation.htm" rel="noreferrer">https://www.tutorialspoint.com/apache_spark/apache_spark_installation.htm</a>   </p>

<p>However, When I try to run <code>spark-shell</code> I receive this error in my console. </p>

<pre><code>/usr/local/spark/bin/spark-shell: line 57: /usr/local/spark/bin/bin/spark-submit: No such file or directory
</code></pre>

<p>My bashrc looks like this:</p>

<pre><code>export PATH = $PATH:/usr/local/spark/bin
export SCALA_HOME=/usr/local/scala/bin
export PYTHONPATH=$SPARK_HOME/python
</code></pre>

<p>So what am I getting wrong? I've installed spark for python before but now I'm trying to use scala. Is spark confusing the variables? Thanks.</p>