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

    https://github.com/apache/spark/pull/3738#discussion_r22084226
  
    --- Diff: 
core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
 ---
    @@ -128,21 +126,25 @@ private[spark] object CoarseGrainedExecutorBackend 
extends Logging {
             Seq[(String, String)](("spark.app.id", appId))
           fetcher.shutdown()
     
    -      // Create a new ActorSystem using driver's Spark properties to run 
the backend.
    +      // Create SparkEnv using properties we fetched from the driver.
           val driverConf = new SparkConf().setAll(props)
    -      val (actorSystem, boundPort) = AkkaUtils.createActorSystem(
    -        SparkEnv.executorActorSystemName,
    -        hostname, port, driverConf, new SecurityManager(driverConf))
    -      // set it
    +      val env = SparkEnv.createExecutorEnv(
    +        driverConf, executorId, hostname, port, cores, isLocal = false)
    +
    +      // SparkEnv sets spark.driver.port so it shouldn't be 0 anymore.
    +      val boundPort = env.conf.getInt("spark.driver.port", 0)
    --- End diff --
    
    Should this be spark.executor.port?


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