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

    https://github.com/apache/spark/pull/7394#discussion_r34800237
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala
 ---
    @@ -61,6 +60,12 @@ private[spark] class YarnClientSchedulerBackend(
         // to the executors
         super.start()
     
    +    // SPARK-8851: In yarn-client mode, the AM still does the credentials 
refresh. The driver
    +    // reads the credentials from HDFS, just like the executors and 
updates its own credentials
    +    // cache.
    +    if (conf.contains("spark.yarn.credentials.file")) {
    +      YarnSparkHadoopUtil.get.startExecutorDelegationTokenRenewer(conf)
    +    }
         waitForApplication()
    --- End diff --
    
    it might make sense to move the startExecutorDelegationTokenRenewer til 
after waitforApplication since it won't update the credentials until 
application master is running anyway


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