+ spark.ui.killViaGetEnabled |
+ true on YARN, false otherwise |
+
+ Whether the job/stage kill endpoints of the web UI accept HTTP GET requests in
+ addition to POST. Left unset, this follows the cluster manager: GET is accepted when
+ spark.master is yarn, because the YARN ResourceManager/AM
+ proxy does not forward POST requests, and refused everywhere else.
+ Either way the state-changing endpoints require the random per-UI CSRF token embedded
+ in the links and forms the UI renders, and reject prefetch requests (identified by
+ the Purpose, Sec-Purpose, or X-Moz headers) and HEAD requests, so forged cross-site
+ requests and incidental link fetches cannot trigger them. Scripted clients can read
+ the token from the jobs page before calling the endpoint. In GET mode the
+ token appears in the kill link URL, so it can be recorded in browser history and
+ server or proxy access logs; it is random per UI instance and grants nothing beyond
+ the UI's own state-changing endpoints. Prefetch rejection relies on the prefetcher
+ identifying itself via those headers; one that sends none of them is not detected.
+ In POST-only mode the kill links on the jobs and stages pages are rendered as POST
+ forms.
+ Introduced in 4.3.0; also available in 3.5.10, 4.0.5, 4.1.4 and 4.2.1; and in all
+ versions after 4.3.0.
+ |
+ 4.3.0 |
+