You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "zhouyifan279 (via GitHub)" <gi...@apache.org> on 2024/01/22 07:18:26 UTC

Re: [PR] [KYUUBI #6003] Allow disabling user impersonation on launching engine [kyuubi]

zhouyifan279 commented on code in PR #6003:
URL: https://github.com/apache/kyuubi/pull/6003#discussion_r1461432834


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/EngineRef.scala:
##########
@@ -97,6 +98,8 @@ private[kyuubi] class EngineRef(
     case _ => user
   }
 
+  private[kyuubi] val effectiveUser: String = if (doAsEnabled) appUser else Utils.currentUser

Review Comment:
   +1. It's better to let appUser be consistent with the user on YARN.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org