HeartSaVioR commented on a change in pull request #23659: [SPARK-26737][YARN]
Executor/Task STDERR & STDOUT log urls are not correct in Yarn deployment mode
URL: https://github.com/apache/spark/pull/23659#discussion_r251198709
##########
File path:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnable.scala
##########
@@ -243,7 +243,7 @@ private[yarn] class ExecutorRunnable(
// Add log urls
container.foreach { c =>
- sys.env.filterKeys(_.endsWith("USER")).foreach { user =>
+ sys.env.get("SPARK_USER").orElse(sys.env.get("USER")).foreach { user =>
Review comment:
So our preference would be `SPARK_USER` -> `USER`, right? I also have to
apply this to #23260 given that I'm refactoring the this code block in #23260.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]