[ 
https://issues.apache.org/jira/browse/SPARK-11499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14988945#comment-14988945
 ] 

Marcelo Vanzin commented on SPARK-11499:
----------------------------------------

Shouldn't the load balancer be doing that (translating the response so that 
http becomes https)? The history server has no idea what protocol the load 
balancer is using. All it knows is that it's using HTTP itself, and that's the 
protocol being used by the request the load balancer is making to the the 
history server. So from the history server's perspective, the redirect should 
go to the http port, since that's what it's using.

Perhaps the HS could be changed to support {{APPLICATION_WEB_PROXY_BASE}} as 
the live UI does, but that means you'd have to set that up in your environment.

> Spark History Server UI should respect protocol when doing redirection
> ----------------------------------------------------------------------
>
>                 Key: SPARK-11499
>                 URL: https://issues.apache.org/jira/browse/SPARK-11499
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Lukasz Jastrzebski
>
> Use case:
> Spark history server is behind load balancer secured with ssl certificate,
> unfortunately clicking on the application link redirects it to http protocol, 
> which may be not expose by load balancer, example flow:
> *   Trying 52.22.220.1...
> * Connected to xxx.yyy.com (52.22.220.1) port 8775 (#0)
> * WARNING: SSL: Certificate type not set, assuming PKCS#12 format.
> * Client certificate: u...@yyy.com
> * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
> * Server certificate: *.yyy.com
> * Server certificate: Entrust Certification Authority - L1K
> * Server certificate: Entrust Root Certification Authority - G2
> > GET /history/20151030-160604-3039174572-5951-22401-0004 HTTP/1.1
> > Host: xxx.yyy.com:8775
> > User-Agent: curl/7.43.0
> > Accept: */*
> >
> < HTTP/1.1 302 Found
> < Location: 
> http://xxx.yyy.com:8775/history/20151030-160604-3039174572-5951-22401-0004
> < Connection: close
> < Server: Jetty(8.y.z-SNAPSHOT)
> <
> * Closing connection 0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to