Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/3897#discussion_r22906863
--- Diff:
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackend.scala
---
@@ -118,14 +119,16 @@ private[spark] class MesosSchedulerBackend(
val command = CommandInfo.newBuilder()
.setEnvironment(environment)
val uri = sc.conf.get("spark.executor.uri", null)
+ val executorBackendName = classOf[MesosExecutorBackend].getName
if (uri == null) {
- val executorPath = new File(executorSparkHome,
"/sbin/spark-executor").getCanonicalPath
+ val executorPath = new File(executorSparkHome, s"/bin/spark-class
$executorBackendName")
+ .getCanonicalPath
--- End diff --
This is actually weird, why are we including `$executorBackendName` in the
filename? We should just look for spark-class. I'm not even sure
getCanonicalPath will work on a file that doesn't exist
---
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]