spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Assigned] (SPARK-21715) History Server should not respond history page html content multiple times for only one http request
Date Tue, 29 Aug 2017 16:54:04 GMT


Apache Spark reassigned SPARK-21715:

    Assignee:     (was: Apache Spark)

> History Server should not respond history page html content multiple times for only one
http request
> ----------------------------------------------------------------------------------------------------
>                 Key: SPARK-21715
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Ye Zhou
>            Priority: Minor
>         Attachments: Performance.png, ResponseContent.png
> UI looks fine for the home page. But we check the performance for each individual components,
we found that there are three picture downloading requests which takes much longer time than
expected: favicon.ico, sort_both.png, sort_desc.png. 
> These are the list of the request address: http://hostname:port/favicon.ico, http://hostname:port/images/sort_both.png,
http://hostname:port/images/sort_desc.png. Later if user clicks on the head of the table to
sort the column, another request for http://hostname:port/images/sort_asc.png will be sent.
> Browsers will send request for favicon.ico in default. And all these three sort_xxx.png
are the default behavior in dataTables jQuery plugin.
> Spark history server will start several handlers to handle http request. But none of
these requests are getting correctly handled and they are all triggering the history server
to respond the history page html content. As we can find from the screenshot, the response
data type are all "text/html".
> To solve this problem, We need to download those images dir from here:
Put the folder under "core/src/main/resources/org/apache/spark/ui/static/". We also need to
modify the dataTables.bootstrap.css to get the correct images location. For favicon.ico downloading
request, we need to add one line in the html header to disable the downloading. 
> I can post a pull request if this is the correct way to fix this. I have tried it which
works fine.
> !!
> !!

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message