This might be a very simple question. But is there any simple way to measure the execution time of a spark job (submitted using spark-submit
)?
It would help us in profiling the spark jobs based on the size of input data.
EDIT : I use http://[driver]:4040
to monitor my jobs, but this Web UI shuts down the moment my job finishes.
Every SparkContext launches its own instance of Web UI which is available at
http://[master]:4040
by default (the port can be changed usingspark.ui.port
).
It offers pages (tabs) with the following information:
Jobs, Stages, Storage (with RDD size and memory use) Environment, Executors, SQL
This information is available only until the application is running by default.
Tip : You can use the web UI after the application is finished by enabling spark.eventLog.enabled
.
Sample web ui where you can see the time as 3.2hours:
SPARK itself provides much granular information about each stage of your Spark Job. Go to the Web interface of Spark on http://your-driver-node:4040, you can use also history server.
If you just need execution time, then go to "http://your-driver-node:8080", and you can see execution time for a job submitted to a spark.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With