Github user harishreedharan commented on a diff in the pull request:
https://github.com/apache/spark/pull/7394#discussion_r34820166
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
@@ -481,8 +481,14 @@ object SparkSubmit {
}
// Let YARN know it's a pyspark app, so it distributes needed
libraries.
- if (clusterManager == YARN && args.isPython) {
- sysProps.put("spark.yarn.isPython", "true")
+ if (clusterManager == YARN) {
+ if (args.isPython) {
+ sysProps.put("spark.yarn.isPython", "true")
+ }
+ if (args.principal != null) {
+ require(args.keytab != null, "Keytab must be specified when the
keytab is specified")
--- End diff --
Looks like `SparkSubmitArguments` actually takes care of this and the
initial login happens correctly even in the combination case (See
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala#L178
). Only the code in `Client.scala` needs to change to handle the combinations.
---
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]