Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1622#discussion_r15662427
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
 ---
    @@ -139,15 +139,16 @@ private[spark] class CoarseMesosSchedulerBackend(
         if (uri == null) {
           val runScript = new File(sparkHome, 
"./bin/spark-class").getCanonicalPath
           command.setValue(
    -        "\"%s\" org.apache.spark.executor.CoarseGrainedExecutorBackend %s 
%s %s %s %d".format(
    -          runScript, extraOpts, driverUrl, offer.getSlaveId.getValue, 
offer.getHostname, numCores))
    +        ("SPARK_JAVA_OPTS='%s' \"%s\" " +
    --- End diff --
    
    If you look at the internals of `spark-class`, I think you want to be 
setting `SPARK_EXECUTOR_OPTS` here. Also, I think environment variables should 
be set via `setEnvironment` as shown above, not like this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to