spark.submit.deployMode
- the deploy mode of Spark driver program, either "client" or "cluster", Which means to launch driver program locally ("client") or remotely ("cluster") on one of the nodes inside the cluster.
You can also check the deployment mode by visiting the Web UI. Spark exposes three of these UIs: Master web UI
, Worker web UI
, Application web UI
.
To check the UI visit (by default / can change in case of YARN deployment etc):
http://localhost:4040/api/v1/applications or http://10.0.2.15:4040.
What you need is the Environment tab and you might want to scrape it or use the REST API if you don't want to deal with SparkListeners:
The Environment tab displays the values for the different environment and configuration variables, including JVM, Spark, and system properties.
See more: https://spark.apache.org/docs/latest/monitoring.html
