jojochuang commented on a change in pull request #34604:
URL: https://github.com/apache/spark/pull/34604#discussion_r750851015
##########
File path:
core/src/main/scala/org/apache/spark/deploy/security/HadoopFSDelegationTokenProvider.scala
##########
@@ -121,6 +121,15 @@ private[deploy] class HadoopFSDelegationTokenProvider
creds
}
+ private def cancelDelegationTokens(hadoopConf: Configuration,
+ creds: Credentials) : Unit = {
+
+ creds.getAllTokens
+ .asScala
+
.filter(_.decodeIdentifier().isInstanceOf[AbstractDelegationTokenIdentifier])
+ .foreach { token => token.cancel(hadoopConf) }
+ }
Review comment:
Hi Sean, the github action in my repo aborted with
"[error]
/home/runner/work/spark/spark/core/src/main/scala/org/apache/spark/deploy/security/HadoopFSDelegationTokenProvider.scala:150:16:
fruitless type test: a value of type
org.apache.hadoop.security.token.Token[?0] cannot also be a
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
[error] case id: AbstractDelegationTokenIdentifier =>
id.cancel(hadoopConf)
[error] ^
[error] one error found"
https://github.com/jojochuang/spark/runs/4232847626?check_suite_focus=true
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]