I am trying to run spark-shell command on cmd prompt on Windows 7. I have installed hadoop and have kept it under C:\\winutils\\hadoop-common-2.2.0-bin-master\\bin and Spark
I have the same issue when trying to install Spark local with Windows 7. Please make sure the below paths is correct and I am sure I will work with you.
C:\Program Files\Java\jdk1.8.0_181
;%JAVA_HOME%\bin
C:\spark-2.3.0-bin-hadoop2.7
;%SPARK_HOME%\bin
C:\Hadoop
;%HADOOP_HOME%\bin
Now you can run the cmd and write spark-shell it will work.
Your JAVA_HOME is set to JRE, please make sure you point it to your JDK folder (it should be located next to your the JRE)