Hi
the SparkLauncher#setJavaHome method uses its argument to find the java
executable, but it does not reset the JAVA_HOME env var in the child
process. As a result, spark scripts such as bin/spark-class that rely on
JAVA_HOME use the wrong value. Adding this to setJavaHome fixes the problem:

    builder.childEnv.put("JAVA_HOME", javaHome);

Should I submit a PR for this or if someone is already working on this code
maybe they can fix it?




--
View this message in context: 
http://apache-spark-developers-list.1001551.n3.nabble.com/SparkLauncher-setJavaHome-does-not-set-JAVA-HOME-in-child-process-tp14848.html
Sent from the Apache Spark Developers List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@spark.apache.org
For additional commands, e-mail: dev-h...@spark.apache.org

Reply via email to