I\'m trying to install Spark on my Windows desktop. Everything should work fine, but I get an error \"\'cmd\' is not recognized as an internal or external command... \"
For my case I had similar issue. I had to fix a couple of things.
1- Check JAVA_HOME is correct on both places;
2- Then I had to change following lines in spark-2.1.1-bin-hadoop2.7\bin folder.