You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/10/25 14:04:33 UTC

[GitHub] [incubator-kyuubi] turboFei commented on a change in pull request #1291: Make kerberos enabled kyuubi server unit test runnable for osx environment

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: commits-unsubscribe@kyuubi.apache.org

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