Github user vanzin commented on a diff in the pull request: https://github.com/apache/spark/pull/21669#discussion_r223511748 --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala --- @@ -646,8 +646,9 @@ private[spark] class SparkSubmit extends Logging { } } - if (clusterManager == MESOS && UserGroupInformation.isSecurityEnabled) { - setRMPrincipal(sparkConf) + if ((clusterManager == MESOS || clusterManager == KUBERNETES) + && UserGroupInformation.isSecurityEnabled) { + setRMPrincipal(sparkConf) --- End diff -- indented too far
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org