14/04/10 08:00:42 INFO AppClient$ClientActor: Executor added: app-20140410080041-0017/9 on worker-20140409145028-ken- VirtualBox-39159 (ken-VirtualBox:39159) with 4 cores 14/04/10 08:00:42 INFO SparkDeploySchedulerBackend: Granted executor ID app-20140410080041-0017/9 on hostPort ken-VirtualBox:39159 with 4 cores, 1024.0 MB RAM 14/04/10 08:00:42 INFO AppClient$ClientActor: Executor updated: app-20140410080041-0017/9 is now RUNNING 14/04/10 08:00:42 INFO AppClient$ClientActor: Executor updated: app-20140410080041-0017/9 is now FAILED (class java.io.IOException: Cannot run program "/bin/java" (in directory "/usr/lib/spark/work/app-20140410080041-0017/9"): error=2, No such file or directory)
I have JAVA_HOME set in both spark-env.sh and shark-env.sh. I suspect that something is not passing the JAVA_HOME value correctly, because unless I create a symlink from /bin/java to my java executable in /usr/lib/jvm/... I get the errors above when starting sharkserver2. Ideas? Ken