Github user jerryshao commented on the pull request:

    https://github.com/apache/spark/pull/8669#issuecomment-165038060
  
    It is a little weird. I assume if `spark.mesos.executor.home` is correctly 
set, from the code Mesos should be able to find the right path of executables:
    
    ```
        val executorSparkHome = conf.getOption("spark.mesos.executor.home")
          .orElse(sc.getSparkHome())
          .getOrElse {
            throw new SparkException("Executor Spark home 
`spark.mesos.executor.home` is not set!")
          }
    ```
    
    ```
          val runScript = new File(executorSparkHome, 
"./bin/spark-class").getCanonicalPath
          command.setValue(
            "%s \"%s\" org.apache.spark.executor.CoarseGrainedExecutorBackend"
              .format(prefixEnv, runScript) +
            s" --driver-url $driverURL" +
            s" --executor-id ${offer.getSlaveId.getValue}" +
            s" --hostname ${offer.getHostname}" +
            s" --cores $numCores" +
            s" --app-id $appId")
    ```
    
    



---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to