Github user jiangxb1987 commented on a diff in the pull request:
    --- Diff: 
    @@ -57,6 +59,20 @@ private[hive] class SparkSQLCLIService(hiveServer: 
HiveServer2, sqlContext: SQLC
             case e @ (_: IOException | _: LoginException) =>
               throw new ServiceException("Unable to login to kerberos with 
given principal/keytab", e)
    +      // Try creating spnego UGI if it is configured.
    +      val principal = 
    +      val keyTabFile = hiveConf.getVar(ConfVars.HIVE_SERVER2_SPNEGO_KEYTAB)
    +      if (principal.nonEmpty && keyTabFile.nonEmpty) {
    --- End diff --
    Should we log warning if `principal` or` keyTablFile` is empty?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to