...
;
export JAVA_HOME=/usr/lib/jvm/java-8-oracle;
/opt/spark/1.6/bin/spark-submit {driver_options} --class=MyClass {file} arg1 arg2;
Note that JAVA_HOME is only set for the duration of the job execution. It will not affect other jobs.
...
;
export JAVA_HOME=/usr/lib/jvm/java-8-oracle;
/opt/spark/1.6/bin/spark-submit {driver_options} --class=MyClass {file} arg1 arg2;
Note that JAVA_HOME is only set for the duration of the job execution. It will not affect other jobs.