spark_on_k8s.api.app¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
delete_app(namespace, app_id, force=False)
async
¶
This endpoint deletes a spark application by its app_id.
It deletes the driver pod, then the Kubernetes garbage collector will delete the executor pods and the other resources.
Source code in spark_on_k8s/api/app.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
kill_app(namespace, app_id)
async
¶
This endpoint kills a spark application by its app_id.
It sends a SIGTERM to the init process of the driver pod (PID 1).
Source code in spark_on_k8s/api/app.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |