title: Installing Spark on Windows not working
body: <p>I am trying to install Apache Spark on my Windows 10 computer. My first step to install Spark was to download <a href="https://java.com/en/download/" rel="nofollow noreferrer">Java from here</a> it was then downloaded through this path: <code>C:\Program Files (x86)\Java</code> the one folder that was downloaded during this installation was: <code>\jre1.8.0_151</code> </p>
  
  <p>Next I installed the <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" rel="nofollow noreferrer">JDK from here</a> and downloaded the windows x86 version. I used the same path as above in the Java folder to download it. After it was done I had two folders inside the Java folder: <code>jdk1.8.0_151 and jre1.8.0_151</code></p>
  
  <p>Afterwards, I set the JAVA_HOME variable to point to <code>C:\PROGRA~1(x86)\Java\jdk1.8.0_151</code> and in <code>Path</code> I added <code>%JAVA_HOME%</code> I then installed <a href="https://www.scala-lang.org/download/" rel="nofollow noreferrer">Scala from here</a> and downloaded the Scala binaries for Windows. The environment path was added in <code>path</code> as: <code>C:\PROGRA~1(x86)\scala\bin</code></p>
  
  <p>Next I installed <a href="https://spark.apache.org/downloads.html" rel="nofollow noreferrer">Spark from here</a> and installed <code>spark-2.2.1-bin-hadoop2.7.tgz</code> Afterwards, I placed this folder here <code>D:\spark-2.2.1-bin-hadoop2.7</code>I then added the environment variable as SPARK_HOME with the path: <code>D:\spark-2.2.1-bin-hadoop2.7\bin</code> and I then updated <code>path</code> to <code>%SPARK_HOME%\bin</code></p>
  
  <p>Finally I tried to see if everything was installed. I typed <code>java -version</code> and the correct java was installed. I then typed <code>scala</code> and scala was open for me to type in expressions and such. I then typed in <code>spark-shell</code> but I got this error:</p>
  
  <blockquote>
    <p>'spark-shell' is not recognized as an internal or external command,
    operable program or batch file.</p>
  </blockquote>
  
  <p>What am I doing wrong that is not making spark open? Please note: I am using cmd for everything.</p>