ishikin opened a new pull request #27083: [SPARK-27996][K8S] Send HTTP redirect using the correct protocol when Spark History server is deployed behind the reverse proxy URL: https://github.com/apache/spark/pull/27083 ### What changes were proposed in this pull request? This PR adds method `updateProtocolFromHeader(request: HttpServletRequest, url: String): String` to JettyUtils.scala and calls this method from when Spark History Server is generating a redirect response. ### Why are the changes needed? This change is needed to address bug SPARK-27996 in History Server. Please note that similar change is likely needed in Spark UI. The scope of this PR is only to address the problem in History Server. ### Does this PR introduce any user-facing change? Yes, the Spark History server deployed in Kubernetes now correctly opens the job page. ### How was this patch tested? The patch was tested by building and deploying Spark History Server to Kubernetes cluster and then observing the behavior of the History Server UI. The regression testing was not performed. I will appreciate is someone can can confirm the Spark History Server still works when deployed on regular infrastructure (e.g. not behind the reverse proxy).
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
