apeming commented on a change in pull request #27222: [SPARK-30519][CORE] Use
spark.executorEnv.HADOOP_USER_NAME to set executor's hadoop user
URL: https://github.com/apache/spark/pull/27222#discussion_r378021329
##########
File path: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
##########
@@ -64,7 +64,7 @@ private[spark] class SparkHadoopUtil extends Logging {
}
def createSparkUser(): UserGroupInformation = {
- val user = Utils.getCurrentUserName()
+ val user =
Option(System.getenv("HADOOP_USER_NAME")).getOrElse(Utils.getCurrentUserName())
Review comment:
Yes, it's spec by spark.executorEnv.HADOOP_USER_NAME and all executors will
use it
----------------------------------------------------------------
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.
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]