Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/12760#discussion_r61492158
--- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
@@ -2179,6 +2179,16 @@ private[spark] object Utils extends Logging {
.getOrElse(UserGroupInformation.getCurrentUser().getShortUserName())
}
+
+ // Returns the groups to which the current user belongs.
+ def getCurrentUserGroups(sparkConf: SparkConf, username: String):
Set[String] = {
+ val groupMappingServiceProvider =
Utils.classForName(sparkConf.get("spark.user.groups.mapping",
--- End diff --
Also we want this conf to be basically optional so it should be able to set
to empty string and not error out in case people don't want it
---
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]