SuccessChanges

Summary

  1. [SPARK-26118][BACKPORT-2.3][WEB UI] Introducing (commit: 62010d64826d91a30d52cdc94467a45d211bcfd2) (details)
Commit 62010d64826d91a30d52cdc94467a45d211bcfd2 by dongjoon
[SPARK-26118][BACKPORT-2.3][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)
Closes #23114 from attilapiros/julianOffByDays-2.3.
Authored-by: “attilapiros” <piros.attila.zsolt@gmail.com> Signed-off-by:
Dongjoon Hyun <dongjoon@apache.org>
(commit: 62010d64826d91a30d52cdc94467a45d211bcfd2)
The file was modifieddocs/configuration.md (diff)
The file was modifiedcore/src/main/scala/org/apache/spark/internal/config/package.scala (diff)
The file was modifiedcore/src/main/scala/org/apache/spark/ui/JettyUtils.scala (diff)