I\'ve installed Spark 2.1.1 on Ubuntu and no matter what I do, it doesn\'t seem to agree with the java path. When I run \"spark-submit --version\" or \"spark-shell\" I get the f
Windows Environment:
Open Advanced system settings -> Environment Variables to set JAVA_HOME path, and the most common mistake is setting the path to JAVA folder:
Advanced system settings -> Environment Variables
JAVA_HOME
JAVA_HOME: Directory-Name:\java
rather than setting it to JDK folder
JAVA_HOME: Directory-Name:\jdk
This is how it worked for me.