• K
    [SPARK-7403] [WEBUI] Link URL in objects on Timeline View is wrong in case of running on YARN · 12b95abc
    Kousuke Saruta 提交于
    When we use Spark on YARN and have AllJobPage via ResourceManager's proxy, the link URL in objects which represent each job on timeline view is wrong.
    
    In timeline-view.js, the link is generated as follows.
    ```
    window.location.href = "job/?id=" + getJobId(this);
    ```
    
    This assumes the URL displayed on the web browser ends with "jobs/" but when we access AllJobPage via the proxy, the url displayed does not end with "jobs/"
    
    The proxy doesn't return status code 301 or 302 so the url displayed still indicates the base url, not "/jobs" even though displaying AllJobPages.
    
    ![2015-05-07 3 34 37](https://cloud.githubusercontent.com/assets/4736016/7501079/a8507ad6-f46c-11e4-9bed-62abea170f4c.png)
    
    Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
    
    Closes #5947 from sarutak/fix-link-in-timeline and squashes the following commits:
    
    aaf40e1 [Kousuke Saruta] Added Copyright for vis.js
    01bee7b [Kousuke Saruta] Fixed timeline-view.js in order to get correct href
    12b95abc
该项目使用协议 Apache License 2.0. 进一步了解
LICENSE 47.2 KB