diff options
author | shane-huang <shengsheng.huang@intel.com> | 2013-09-26 17:08:47 +0800 |
---|---|---|
committer | shane-huang <shengsheng.huang@intel.com> | 2013-09-26 17:08:47 +0800 |
commit | e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72 (patch) | |
tree | f5b06502813cca286e2db98b6cf7df2355df0c2a /core/src | |
parent | 14098037630196d2672431539503f27be67be480 (diff) | |
download | spark-e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72.tar.gz spark-e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72.tar.bz2 spark-e8b1ee04fcb4cd7b666d3148d6d5ff148551ce72.zip |
fix paths and change spark to use APP_MEM as application driver memory instead of SPARK_MEM, user should add application jars to SPARK_CLASSPATH
Signed-off-by: shane-huang <shengsheng.huang@intel.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/org/apache/spark/scheduler/mesos/CoarseMesosSchedulerBackend.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/scheduler/mesos/CoarseMesosSchedulerBackend.scala b/core/src/main/scala/org/apache/spark/scheduler/mesos/CoarseMesosSchedulerBackend.scala index 9f93491e5a..544b20550e 100644 --- a/core/src/main/scala/org/apache/spark/scheduler/mesos/CoarseMesosSchedulerBackend.scala +++ b/core/src/main/scala/org/apache/spark/scheduler/mesos/CoarseMesosSchedulerBackend.scala @@ -125,7 +125,7 @@ private[spark] class CoarseMesosSchedulerBackend( StandaloneSchedulerBackend.ACTOR_NAME) val uri = System.getProperty("spark.executor.uri") if (uri == null) { - val runScript = new File(sparkHome, "/sbin/spark-class").getCanonicalPath + val runScript = new File(sparkHome, "./sbin/spark-class").getCanonicalPath command.setValue( "\"%s\" org.apache.spark.executor.StandaloneExecutorBackend %s %s %s %d".format( runScript, driverUrl, offer.getSlaveId.getValue, offer.getHostname, numCores)) |