pan3793 commented on code in PR #52923:
URL: https://github.com/apache/spark/pull/52923#discussion_r2501500911


##########
core/src/main/scala/org/apache/spark/SparkEnv.scala:
##########
@@ -369,6 +371,11 @@ object SparkEnv extends Logging {
         logInfo(log"Registering ${MDC(LogKeys.ENDPOINT_NAME, name)}")
         rpcEnv.setupEndpoint(name, endpointCreator)
       } else {
+        val useDriverPodIP =
+          conf.get("spark.kubernetes.executor.useDriverPodIP", 
"false").equalsIgnoreCase("true")
+        if (useDriverPodIP) {
+          conf.set(config.DRIVER_HOST_ADDRESS.key, 
conf.get(config.DRIVER_BIND_ADDRESS.key))

Review Comment:
   @dongjoon-hyun I wonder if it is possible to override the 
DRIVER_HOST_ADDRESS at SparkContext initialization, and I believe this is the 
original intention to introduce the `advertiseAddress`
   
   
https://github.com/apache/spark/blob/9894abcca68aa9339a740c676d1656f24ca3cedc/core/src/main/scala/org/apache/spark/SparkContext.scala#L455-L458



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to