turboFei commented on a change in pull request #1291:
URL: https://github.com/apache/incubator-kyuubi/pull/1291#discussion_r735654467



##########
File path: 
kyuubi-server/src/main/scala/org/apache/kyuubi/server/KinitAuxiliaryService.scala
##########
@@ -45,7 +45,8 @@ class KinitAuxiliaryService() extends 
AbstractService("KinitAuxiliaryService") {
 
       require(keytab.nonEmpty && principal.nonEmpty, "principal or keytab is 
missing")
       UserGroupInformation.loginUserFromKeytab(principal.get, keytab.get)
-      val commands = Seq("kinit", "-kt", keytab.get, principal.get)
+      val krb5Conf = System.getProperty("java.security.krb5.conf")
+      val commands = Seq(s"env KRB5_CONFIG=$krb5Conf", "kinit", "-kt", 
keytab.get, principal.get)

Review comment:
       Is it possible that, for the commands executed in processBuilder, its 
default KRB5_CONFIG is not same with the value of  `java.security.krb5.conf`?




-- 
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]


Reply via email to