pralabhkumar commented on a change in pull request #33917:
URL: https://github.com/apache/spark/pull/33917#discussion_r707355798



##########
File path: 
core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala
##########
@@ -345,8 +345,9 @@ object HistoryServer extends Logging {
     // occur from the keytab.
     if (conf.get(History.KERBEROS_ENABLED)) {
       // if you have enabled kerberos the following 2 params must be set
-      val principalName = conf.get(History.KERBEROS_PRINCIPAL)
-        .getOrElse(throw new 
NoSuchElementException(History.KERBEROS_PRINCIPAL.key))
+      val principalName = SparkHadoopUtil.get.getServerPrincipal(conf

Review comment:
       This PR is only for handling _HOST at  the History Server . Therefore 
this change won't impact thrift server




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to