-
Hi, We're starting to change from our own SparkUI proxy service to kyuubi's proxy Because kyuubi-server is sitting behind some gateways, there're too many(?) request headers like this:
So I make a quick change like KyuubiTHttpFrontendService to set request/response header size: minyk@f4bbc6f, but had no lock. Still too large header error:
if header is smaller than 4000, confirm passed:
Am I miss something for jetty's configurations? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
we only expose a few Jetty configurations, do you know which vanilla Jetty configuration affects that? we may want to expose it to Kyuubi conf, or passthrough all Jetty configurations via a dedicated prefix in Kyuubi conf. |
Beta Was this translation helpful? Give feedback.
-
Hi @minyk, would you mind submitting a pull request for this? I think it would be beneficial if we made it configurable. I have found a PR from apache zeppelin apache/zeppelin#2663 |
Beta Was this translation helpful? Give feedback.
-
Also, this change might affect to Trino Engine: |
Beta Was this translation helpful? Give feedback.
-
I found a way. request header size is not the problem, but HttpClient's request buffer size. Codes like below: diff --git a/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/ApiRootResource.scala b/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/ApiRootResource.scala
--- a/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/ApiRootResource.scala (revision ddf36633b13b9baf1c2b6555137868a674b85a37)
+++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/ApiRootResource.scala (revision d3041bf2d6894b966844aae14d0243026062cbfb)
@@ -86,6 +86,7 @@
def getEngineUIProxyHandler(fe: KyuubiRestFrontendService): ServletContextHandler = {
val proxyServlet = new EngineUIProxyServlet()
val holder = new ServletHolder(proxyServlet)
+ holder.setInitParameter("requestBufferSize", "6144")
val proxyHandler = new ServletContextHandler(ServletContextHandler.NO_SESSIONS)
proxyHandler.setContextPath("/engine-ui")
proxyHandler.addServlet(holder, "/*") I'll make a PR for this change. |
Beta Was this translation helpful? Give feedback.
I found a way. request header size is not the problem, but HttpClient's request buffer size. Codes like below: