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

    https://github.com/apache/spark/pull/21466#discussion_r192033436
  
    --- Diff: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/security/YARNHadoopDelegationTokenManager.scala
 ---
    @@ -44,6 +44,10 @@ private[yarn] class YARNHadoopDelegationTokenManager(
     
       // public for testing
       val credentialProviders = getCredentialProviders
    +  if (credentialProviders.keys.nonEmpty) {
    --- End diff --
    
    `credentialProviders.nonEmpty` should be enough?


---

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

Reply via email to