You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by attilapiros <gi...@git.apache.org> on 2018/11/22 02:25:42 UTC

[GitHub] spark pull request #23115: [SPARK-26118][WEB UI] Introducing spark.ui.reques...

GitHub user attilapiros opened a pull request:

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

    [SPARK-26118][WEB UI] Introducing spark.ui.requestHeaderSize for setting HTTP requestHeaderSize

    ## What changes were proposed in this pull request?
    
    Introducing spark.ui.requestHeaderSize for configuring Jetty's HTTP requestHeaderSize.
    This way long authorization field does not lead to HTTP 413.
    
    ## How was this patch tested?
    
    Manually with curl (which version must be at least 7.55).
    
    With the original default value (8k limit):
    
    ```bash
    $ ./sbin/start-history-server.sh
    starting org.apache.spark.deploy.history.HistoryServer, logging to /Users/attilapiros/github/spark/logs/spark-attilapiros-org.apache.spark.deploy.history.HistoryServer-1-apiros-MBP.lan.out
    
    $ echo -n "X-Custom-Header: " > cookie
    $ printf 'A%.0s' {1..9500} >> cookie
    
    $ curl  -H cookie http://458apiros-MBP.lan:18080/
    <h1>Bad Message 431</h1><pre>reason: Request Header Fields Too Large</pre>
    
    $ tail -1 /Users/attilapiros/github/spark/logs/spark-attilapiros-org.apache.spark.deploy.history.HistoryServer-1-apiros-MBP.lan.out
    18/11/19 21:24:28 WARN HttpParser: Header is too large 8193>8192
    ```
    
    After:
    
    ```bash
    $ echo spark.ui.requestHeaderSize=10000 > history.properties
    
    $ ./sbin/start-history-server.sh --properties-file history.properties
    starting org.apache.spark.deploy.history.HistoryServer, logging to /Users/attilapiros/github/spark/logs/spark-attilapiros-org.apache.spark.deploy.history.HistoryServer-1-apiros-MBP.lan.out
    
    $ curl  -H cookie http://458apiros-MBP.lan:18080/
    <!DOCTYPE html><html>
          <head>...
             <link rel="shortcut icon" href="/static/spark-logo-77x50px-hd.png"></link>
            <title>History Server</title>
          </head>
          <body>
    ...
    ```
    (cherry picked from commit ab61ddb34d58ab5701191c8fd3a24a62f6ebf37b)

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

    $ git pull https://github.com/attilapiros/spark julianOffByDays-2.2

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

    https://github.com/apache/spark/pull/23115.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 #23115
    
----
commit 9513b3f0de8d3f88eb488411f7c412e45689013f
Author: “attilapiros” <pi...@...>
Date:   2018-11-20T14:56:22Z

    [SPARK-26118][WEB UI] Introducing spark.ui.requestHeaderSize for setting HTTP requestHeaderSize
    
    Introducing spark.ui.requestHeaderSize for configuring Jetty's HTTP requestHeaderSize.
    This way long authorization field does not lead to HTTP 413.
    
    Manually with curl (which version must be at least 7.55).
    
    With the original default value (8k limit):
    
    ```bash
    $ ./sbin/start-history-server.sh
    starting org.apache.spark.deploy.history.HistoryServer, logging to /Users/attilapiros/github/spark/logs/spark-attilapiros-org.apache.spark.deploy.history.HistoryServer-1-apiros-MBP.lan.out
    
    $ echo -n "X-Custom-Header: " > cookie
    $ printf 'A%.0s' {1..9500} >> cookie
    
    $ curl  -H cookie http://458apiros-MBP.lan:18080/
    <h1>Bad Message 431</h1><pre>reason: Request Header Fields Too Large</pre>
    
    $ tail -1 /Users/attilapiros/github/spark/logs/spark-attilapiros-org.apache.spark.deploy.history.HistoryServer-1-apiros-MBP.lan.out
    18/11/19 21:24:28 WARN HttpParser: Header is too large 8193>8192
    ```
    
    After:
    
    ```bash
    $ echo spark.ui.requestHeaderSize=10000 > history.properties
    
    $ ./sbin/start-history-server.sh --properties-file history.properties
    starting org.apache.spark.deploy.history.HistoryServer, logging to /Users/attilapiros/github/spark/logs/spark-attilapiros-org.apache.spark.deploy.history.HistoryServer-1-apiros-MBP.lan.out
    
    $ curl  -H cookie http://458apiros-MBP.lan:18080/
    <!DOCTYPE html><html>
          <head>...
             <link rel="shortcut icon" href="/static/spark-logo-77x50px-hd.png"></link>
            <title>History Server</title>
          </head>
          <body>
    ...
    ```
    (cherry picked from commit ab61ddb34d58ab5701191c8fd3a24a62f6ebf37b)

----


---

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


[GitHub] spark issue #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    This is merged to `branch-2.2`. Please close this PR.
    Thanks, @attilapiros .


---

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


[GitHub] spark issue #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    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 #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99157/
    Test PASSed.


---

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


[GitHub] spark issue #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    **[Test build #99157 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99157/testReport)** for PR 23115 at commit [`9513b3f`](https://github.com/apache/spark/commit/9513b3f0de8d3f88eb488411f7c412e45689013f).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

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


[GitHub] spark issue #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    Thank you, @attilapiros . I'll do the manual test.


---

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


[GitHub] spark issue #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    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 #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    Merged build finished. Test PASSed.


---

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


[GitHub] spark pull request #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing s...

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

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


---

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


[GitHub] spark issue #23115: [SPARK-26118][BACKPORT-2.2][WEB UI] Introducing spark.ui...

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

    https://github.com/apache/spark/pull/23115
  
    **[Test build #99157 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99157/testReport)** for PR 23115 at commit [`9513b3f`](https://github.com/apache/spark/commit/9513b3f0de8d3f88eb488411f7c412e45689013f).


---

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