You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by shahidki31 <gi...@git.apache.org> on 2018/10/13 17:56:10 UTC

[GitHub] spark pull request #22714: [SPARK-25720][WEBUI] Support auto refresh page fo...

GitHub user shahidki31 opened a pull request:

    https://github.com/apache/spark/pull/22714

    [SPARK-25720][WEBUI] Support auto refresh page for the WEBUI

    ## What changes were proposed in this pull request?
    Currently spark webui doesn't have an option of auto refresh page. Because of this, user has to reload
    every time to see the updates in the page. 
    
    For SQL page and Streaming page, currently we are passing the refresh interval, but it is not implemented in the 'headerSparkPage' method. This PR, added the refresh functionality to the webui.
    
    ![screenshot from 2018-10-13 23-18-06](https://user-images.githubusercontent.com/23054875/46908270-48bbf680-cf3e-11e8-8014-de4cf8393dd9.png)
    ![screenshot from 2018-10-13 23-17-51](https://user-images.githubusercontent.com/23054875/46908272-4f4a6e00-cf3e-11e8-8ad9-3c6c5228b62d.png)
    ![screenshot from 2018-10-13 23-17-40](https://user-images.githubusercontent.com/23054875/46908275-52455e80-cf3e-11e8-92c3-93ffd5c0aff3.png)
    
    
    ## How was this patch tested?
    Manually verified.
    Every 5 seconds the SQL page is refreshing. 
    
    ![screenshot from 2018-10-13 23-23-41](https://user-images.githubusercontent.com/23054875/46908342-11017e80-cf3f-11e8-8bd5-33087e7acedb.png)
    
    ![screenshot from 2018-10-13 23-24-27](https://user-images.githubusercontent.com/23054875/46908347-27a7d580-cf3f-11e8-8bc2-360fb9d5894f.png)
    
    
    
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shahidki31/spark refresh

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22714.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22714
    
----
commit 95b6a1e3cdcce51dc2c57a4feac47208ebd4e390
Author: Shahid <sh...@...>
Date:   2018-10-13T17:41:30Z

    refresh page

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22714: [SPARK-25720][WEBUI] Support auto refresh page fo...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 closed the pull request at:

    https://github.com/apache/spark/pull/22714


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    Thank you @srowen for the comment. Yes, we should not hard-code the refresh interval and we let the user to enable the parameter. I will update the code accordingly.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    can this be passed in as a param in the url?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    @gengliangwang Sorry, I didn't see the PR. Yes, that PR also for refreshing functionality for the webui.
    
    I have taken the patch and checked the functionality, and it seems fine. Below is the screen shot of the ui.
    **Except the alignment of the tabs,** functionality seems good. 
    
    
    **After the patch**
    ![screenshot from 2018-10-14 23-48-40](https://user-images.githubusercontent.com/23054875/46920457-255f7d00-d00c-11e8-8f8b-95918610c995.png)
    
    
    **Before the patch**
    ![screenshot from 2018-10-13 23-23-41](https://user-images.githubusercontent.com/23054875/46920470-53dd5800-d00c-11e8-9641-633a35b9ba9e.png)
    
    



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    Shouldn't it go in `commonHeaderNodes`?
    
    Looks like this was added waaay back in https://github.com/JoshRosen/spark/commit/6aa08c39cf30fa5c4ed97f4fff16371b9030a2e6 by @tdas but never used. Only a few call sites set it. The problem I can see is that those hard-code it to 5 second refreshes.
    
    I think we'd have to introduce a new parameter to control this, like `spark.ui.refreshInterval` or something, and then stop passing it into this method and just read it in this code somewhere?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    I am closing the PR, since already one PR is there for the webui auto refresh. Thanks.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    cc @srowen @cloud-fan . Kindly review.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22714: [SPARK-25720][WEBUI] Support auto refresh page for the W...

Posted by gengliangwang <gi...@git.apache.org>.
Github user gengliangwang commented on the issue:

    https://github.com/apache/spark/pull/22714
  
    BTW there is another approach: https://github.com/apache/spark/pull/21512


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org