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
RUNNER="${JAVA_HOME}/bin/java"