Skip to content

Commit

Permalink
[KYUUBI-162]use login user to impersonation fix #162 (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Mar 11, 2019
1 parent 70c5c6d commit 0ab29e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private[kyuubi] class KyuubiSession(
private var lastIdleTime = 0L

private val sessionUGI: UserGroupInformation = {
val currentUser = UserGroupInformation.getCurrentUser
val currentUser = UserGroupInformation.getLoginUser
if (withImpersonation) {
if (UserGroupInformation.isSecurityEnabled) {
if (conf.contains(KyuubiSparkUtil.PRINCIPAL) && conf.contains(KyuubiSparkUtil.KEYTAB)) {
Expand Down

0 comments on commit 0ab29e5

Please sign in to comment.