-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Jetty Http Request/Response Header Size Configuration #266
base: master
Are you sure you want to change the base?
Conversation
Kerberos over http requires larger header sizes than the default, or the HTTP Error 413 Request entity too large will be returned. This patch increases the default for Livy to 128K and also allows this to be configurable.
Current coverage is 71.00% (diff: 81.81%)@@ master #266 diff @@
==========================================
Files 92 92
Lines 4749 4759 +10
Methods 0 0
Messages 0 0
Branches 822 822
==========================================
+ Hits 3376 3379 +3
- Misses 899 905 +6
- Partials 474 475 +1
|
@@ -58,6 +58,8 @@ object LivyConf { | |||
|
|||
val SERVER_HOST = Entry("livy.server.host", "0.0.0.0") | |||
val SERVER_PORT = Entry("livy.server.port", 8998) | |||
val HTTP_REQUEST_HEADER_SIZE = Entry("livy.http.request.header.size", 131072) | |||
val HTTP_RESPONSE_HEADER_SIZE = Entry("livy.http.response.header.size", 131072) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename the configurations to "livy.server.request_header.size" and "livy.server.response_header.size", also it would be better to add some comments for these two configurations to describe why we have to change the default size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
livy.server.request-header.size
livy.server.response-header.size
|
||
case Some(keystore) => | ||
val https = new HttpConfiguration() | ||
https.setRequestHeaderSize(requestHeaderSize) | ||
https.setResponseHeaderSize(responseHeaderSize) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this HttpConfiguration
to above to remove the duplications.
Mind if you create a JIRA for this? |
@brockn Would you mind addressing the comments mentioned above? |
@brockn Any update ? |
Kerberos over http requires larger header sizes than the default,
or the HTTP Error 413 Request entity too large will be returned.
This patch increases the default for Livy to 128K and also allows
this to be configurable.