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
In the /etc/environment file replace
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/
with
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/
then execute
source /etc/environment
also RUNNER="${JAVA_HOME}/bin/java"
should be kept as it is
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:
JAVA_HOME: Directory-Name:\java
rather than setting it to JDK folder
JAVA_HOME: Directory-Name:\jdk
This is how it worked for me.