You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MINOR][YARN] Add YARN-specific credential providers in debug logging message
This PR adds a debugging log for YARN-specific credential providers which is loaded by service loader mechanism.
It took me a while to debug if it's actually loaded or not. I had to explicitly set the deprecated configuration and check if that's actually being loaded.
The change scope is manually tested. Logs are like:
```
Using the following builtin delegation token providers: hadoopfs, hive, hbase.
Using the following YARN-specific credential providers: yarn-test.
```
Author: hyukjinkwon <[email protected]>
Closes#21466 from HyukjinKwon/minor-log.
Change-Id: I18e2fb8eeb3289b148f24c47bb3130a560a881cf
Copy file name to clipboardExpand all lines: resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/security/YARNHadoopDelegationTokenManager.scala
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ private[yarn] class YARNHadoopDelegationTokenManager(
44
44
45
45
// public for testing
46
46
valcredentialProviders= getCredentialProviders
47
+
if (credentialProviders.nonEmpty) {
48
+
logDebug("Using the following YARN-specific credential providers: "+
49
+
s"${credentialProviders.keys.mkString(", ")}.")
50
+
}
47
51
48
52
/**
49
53
* Writes delegation tokens to creds. Delegation tokens are fetched from all registered
0 commit comments