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

Rohit Agarwal commented on SPARK-9724:
--------------------------------------

With the above changes:
{code}
vagrant@localhost:~ $ curl -i 
http://localhost:18081/history/application_1438648766072_0005/
HTTP/1.1 302 Found
Location: http://localhost:18081/history/application_1438648766072_0005/
Content-Length: 0
Server: Jetty(8.y.z-SNAPSHOT)

vagrant@localhost:~ $ curl -i 
http://localhost:18081/history/application_1438648766072_0005/
HTTP/1.1 302 Found
Location: http://localhost:18081/history/application_1438648766072_0005/jobs/
Content-Length: 0
Server: Jetty(8.y.z-SNAPSHOT)

vagrant@localhost:~ $ curl -i 
http://localhost:18081/history/application_1438648766072_0005/jobs/
HTTP/1.1 200 OK
Content-Type: text/html;charset=UTF-8
Cache-Control: no-cache, no-store, must-revalidate
Content-Length: 5267
Server: Jetty(8.y.z-SNAPSHOT)
{code}

> Avoid unnecessary redirects in the Spark Web UI
> -----------------------------------------------
>
>                 Key: SPARK-9724
>                 URL: https://issues.apache.org/jira/browse/SPARK-9724
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 1.3.1, 1.4.0, 1.4.1
>            Reporter: Rohit Agarwal
>
> When opening Spark's Web UI for an application, there are a number of 
> redirects which makes it feel slow. We can avoid one of them.
> {code}
> vagrant@localhost:~ $ curl -i 
> http://localhost:18080/history/application_1438648766072_0005/
> HTTP/1.1 302 Found
> Location: http://localhost:18080/history/application_1438648766072_0005/
> Content-Length: 0
> Server: Jetty(8.y.z-SNAPSHOT)
> vagrant@localhost:~ $ curl -i 
> http://localhost:18080/history/application_1438648766072_0005/
> HTTP/1.1 302 Found
> Location: http://localhost:18080/history/application_1438648766072_0005/jobs
> Content-Length: 0
> Server: Jetty(8.y.z-SNAPSHOT)
> vagrant@localhost:~ $ curl -i 
> http://localhost:18080/history/application_1438648766072_0005/jobs
> HTTP/1.1 302 Found
> Location: http://localhost:18080/history/application_1438648766072_0005/jobs/
> Content-Length: 0
> Server: Jetty(8.y.z-SNAPSHOT)
> vagrant@localhost:~ $ curl -i 
> http://localhost:18080/history/application_1438648766072_0005/jobs/
> HTTP/1.1 200 OK
> Content-Type: text/html;charset=UTF-8
> Cache-Control: no-cache, no-store, must-revalidate
> Content-Length: 5267
> Server: Jetty(8.y.z-SNAPSHOT)
> {code}



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