wangyum commented on code in PR #57525: URL: https://github.com/apache/spark/pull/57525#discussion_r3722061814
########## core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala: ########## @@ -62,6 +63,11 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val rpcEnv: Rp // Total number of executors that are currently registered protected val totalRegisteredExecutors = new AtomicInteger(0) protected val conf = scheduler.sc.conf + private val driverInstanceToken = UUID.randomUUID().toString + // Propagate the token as an environment variable to executor processes. + // setExecutorEnv covers YARN and Kubernetes; sc.executorEnvs is updated directly for Standalone. + conf.setExecutorEnv(EXECUTOR_DRIVER_INSTANCE_TOKEN, driverInstanceToken) + scheduler.sc.executorEnvs(EXECUTOR_DRIVER_INSTANCE_TOKEN) = driverInstanceToken Review Comment: @sunchao Let's fix the redact secrets in Spark Standalone mode separately to make this fix easy to review: https://github.com/apache/spark/pull/57796 -- 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]
