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



##########
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:
       I do not know why, but I have to add `env KRB5_CONFIG=$krb5Conf` here to 
make it run on macbook
   @yaooqinn 




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