Github user harishreedharan commented on a diff in the pull request:
https://github.com/apache/spark/pull/4688#discussion_r25920307
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
---
@@ -122,6 +126,14 @@ class SparkHadoopUtil extends Logging {
}
/**
+ * Schedule a login from the keytab and principal set using the
--principal and --keytab
+ * arguments to spark-submit. This login happens only when the
credentials of the current user
+ * are about to expire. This method reads SPARK_PRINCIPAL and
SPARK_KEYTAB from the environment
+ * to do the login. This method is a no-op in non-YARN mode.
+ */
+ private[spark] def scheduleLoginFromKeytab(): Unit = {}
--- End diff --
The reason is that this is used from CoarseGrainedSchedulerBackend. Either
we have this here or have a match-case in that class. I'd rather have this
method as the code there becomes cleaner.
---
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]