pan3793 commented on code in PR #6275:
URL: https://github.com/apache/kyuubi/pull/6275#discussion_r1560985177
##########
externals/kyuubi-jdbc-engine/src/main/scala/org/apache/kyuubi/engine/jdbc/JdbcSQLEngine.scala:
##########
@@ -88,17 +89,7 @@ object JdbcSQLEngine extends Logging {
UserGroupInformation.loginUserFromKeytab(principal.get, keytab.get)
UserGroupInformation.getCurrentUser
case DeployMode.LOCAL if proxyUser.get != realUser.getShortUserName =>
- val newUGI = UserGroupInformation.createProxyUser(proxyUser.get,
realUser)
- newUGI.doAs(new PrivilegedExceptionAction[Unit] {
- override def run(): Unit = {
- val engineCredentials =
-
kyuubiConf.getOption(KyuubiReservedKeys.KYUUBI_ENGINE_CREDENTIALS_KEY)
-
kyuubiConf.unset(KyuubiReservedKeys.KYUUBI_ENGINE_CREDENTIALS_KEY)
- engineCredentials.filter(_.nonEmpty).foreach { credentials =>
- }
- }
- })
- newUGI
+ UserGroupInformation.createProxyUser(proxyUser.get, realUser)
Review Comment:
`kyuubiConf.unset(KyuubiReservedKeys.KYUUBI_ENGINE_CREDENTIALS_KEY` is missed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]