Ye Zhou created SPARK-21715:

             Summary: History Server respondes history page html content 
multiple times for only one http request
                 Key: SPARK-21715
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 2.2.0, 2.1.0, 2.3.0
            Reporter: Ye Zhou
            Priority: Minor
             Fix For: 2.3.0

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

Reply via email to