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

    https://github.com/apache/spark/pull/17357#discussion_r134986472
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/worker/DriverWrapper.scala ---
    @@ -38,8 +39,10 @@ object DriverWrapper {
            */
           case workerUrl :: userJar :: mainClass :: extraArgs =>
             val conf = new SparkConf()
    -        val rpcEnv = RpcEnv.create("Driver",
    -          Utils.localHostName(), 0, conf, new SecurityManager(conf))
    +        val host: String = Utils.localHostName()
    --- End diff --
    
    Please correct me, AFAIU `spark.driver.host` may not be specified on each 
node of the cluster and its value might be global(i.e. cluster wide). Since 
driver is launched on a random node during a failover, it's value can not be 
pre-assigned and has to be picked up from that node's local environment.
    
    About `spark.driver.port`, I am not sure, but the fact is - it might work, 
even if it is global cluster wide constant.


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