Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51061][CORE] Hide
Jetty
info in REST Submission API
### What changes were proposed in this pull request? This PR aims to hide `Jetty` info in REST Submission API like SPARK-46239. - #44158 ### Why are the changes needed? Start `Spark Master` server. ``` $ SPARK_MASTER_OPTS='-Dspark.master.rest.enabled=true' sbin/start-master.sh ``` **BEFORE:** ``` $ curl -vv http://0.0.0.0:6066/v1/submissions/readyz * Trying 0.0.0.0:6066... * Connected to 0.0.0.0 (0.0.0.0) port 6066 > GET /v1/submissions/readyz HTTP/1.1 > Host: 0.0.0.0:6066 > User-Agent: curl/8.7.1 > Accept: */* > * Request completely sent off < HTTP/1.1 200 OK < Date: Sun, 02 Feb 2025 05:14:04 GMT < Content-Type: application/json;charset=utf-8 < Content-Length: 114 < Server: Jetty(11.0.24) < { "action" : "ReadyzResponse", "message" : "", "serverSparkVersion" : "4.1.0-SNAPSHOT", "success" : true * Connection #0 to host 0.0.0.0 left intact } ``` **AFTER** ``` $ curl -vv http://0.0.0.0:6066/v1/submissions/readyz * Trying 0.0.0.0:6066... * Connected to 0.0.0.0 (0.0.0.0) port 6066 > GET /v1/submissions/readyz HTTP/1.1 > Host: 0.0.0.0:6066 > User-Agent: curl/8.7.1 > Accept: */* > * Request completely sent off < HTTP/1.1 200 OK < Date: Sun, 02 Feb 2025 05:12:41 GMT < Content-Type: application/json;charset=utf-8 < Content-Length: 114 < { "action" : "ReadyzResponse", "message" : "", "serverSparkVersion" : "4.1.0-SNAPSHOT", "success" : true * Connection #0 to host 0.0.0.0 left intact } ``` ### Does this PR introduce _any_ user-facing change? No, there is no technical behavior change because this is a meta-data. ### How was this patch tested? Manual test with the above procedure. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49762 from dongjoon-hyun/SPARK-51061. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information