pan3793 commented on PR #2082:
URL: 
https://github.com/apache/incubator-celeborn/pull/2082#issuecomment-1801757267

   it's quite easy to support auth from tgt cache
   
   val kerberosEnabled = 
"KERBEROS".equalsIgnoreCase(hadoopConf.get("hadoop.security.authentication"))
   if (kerberosEnabled) {
     val principalOpt = ...
     val keytabOpt = ...
     (principalOpt, keytabOpt) match {
       case (Some(principal), Some(keytab)) =>
         logInfo("Kerberos is enabled, attempt to login with principal: 
$principal and keytab: $keytab")
         UserGroupInformation.loginUserFromKeytab(principal, keytab)
       case _ =>
         logInfo("Kerberos is enabled, but without principal and keytab 
supplied, assuming keytab is managed externally")
         UserGroupInformation.getCurrentUser()
     }
   }


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