You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by okoethibm <gi...@git.apache.org> on 2017/03/21 08:00:08 UTC

[GitHub] spark pull request #17370: [SPARK-20042] [Web UI] Fix log page buttons for r...

GitHub user okoethibm opened a pull request:

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

    [SPARK-20042] [Web UI] Fix log page buttons for reverse proxy mode

    with spark.ui.reverseProxy=true, full path URLs like /log will point to
    the master web endpoint which is serving the worker UI as reverse proxy.
    To access a REST endpoint in the worker in reverse proxy mode , the
    leading /proxy/<target>/ part of the base URI must be retained.
    
    Added logic to log-view.js to handle this, similar to executorspage.js
    
    Patch was tested manually

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

    $ git pull https://github.com/okoethibm/spark master

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

    https://github.com/apache/spark/pull/17370.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 #17370
    
----
commit fdca6ab38a40642cd4ef0c95fe4d61fc845e0351
Author: Oliver K�th <ok...@de.ibm.com>
Date:   2017-03-21T07:50:18Z

    Fix log page buttons for reverse proxy mode
    
    with spark.ui.reverseProxy=true, full path URLs like /log will point to
    the master web endpoint which is serving the worker UI as reverse proxy.
    To access a REST endpoint in the worker in reverse proxy mode , the
    leading /proxy/<target>/ part of the base URI must be retained.
    
    Added logic to log-view.js to handle this, similar to executorspage.js

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    Merged to master/2.1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    @srowen can you ok to test this?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    **[Test build #3636 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/3636/testReport)** for PR 17370 at commit [`216e8fc`](https://github.com/apache/spark/commit/216e8fc451771f39c4480ee3147df55abe2a3635).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    @srowen Can you please "ok to test" then?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    CC @ajbozarth 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    @srowen or @vanzin mind okaying this to test (and taking a quick look)?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    I see, so it's the same approach already used everywhere else and it's not easy to centralize. OK.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    **[Test build #3636 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/3636/testReport)** for PR 17370 at commit [`216e8fc`](https://github.com/apache/spark/commit/216e8fc451771f39c4480ee3147df55abe2a3635).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    This is the only link that doesn't work at the moment. As noted above, the same kind of rewrite already takes place in executorspage.js (committed by @tgravescs, function createRESTEndPoint), that's where I copied the logic, with the dependency on /proxy/ inside the URL. 
    Of course it would be nicer to have this generalized somewhere -- this PR is intended as a low-risk localized bugfix, not a refactoring. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #17370: [SPARK-20042] [Web UI] Fix log page buttons for reverse ...

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

    https://github.com/apache/spark/pull/17370
  
    Hm, is this the only link that needs rewriting in the presence of a proxy? it looks kind of brittle, like it depends on a quite specific URL structure. Can this be generalized? And/or can the logic be explained?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request #17370: [SPARK-20042] [Web UI] Fix log page buttons for r...

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

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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