Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/14065#discussion_r71362442
--- Diff:
yarn/src/main/scala/org/apache/spark/deploy/yarn/security/ExecutorDelegationTokenUpdater.scala
---
@@ -107,6 +110,14 @@ private[spark] class ExecutorDelegationTokenUpdater(
}
}
+ private def getTimeOfNextUpdateFromFileName(credentialsPath: Path): Long
= {
+ val name = credentialsPath.getName
+ val index =
name.lastIndexOf(SparkHadoopUtil.SPARK_YARN_CREDS_COUNTER_DELIM)
+ val slice = name.substring(0, index)
+ val last2index =
slice.lastIndexOf(SparkHadoopUtil.SPARK_YARN_CREDS_COUNTER_DELIM)
+ name.substring(last2index).toLong
--- End diff --
is this giving you the right time? It looks like its giving you the
credentials file name instead of the next time to update.
name is: credentials-UUID-timestamp-1... slice =
credentials-UUID-timestamp, name.substring of that is credentials-UUID. don't
you want name.substring(last2index, index) ?
---
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]