The Spark History Server lets you see details about completed Spark jobs. It helps you check job progress, errors, and performance after the job finishes.
Click to reveal answer
beginner
Where does Spark History Server get the data to show job details?
It reads event logs saved by Spark jobs in a configured storage location, like HDFS or a local directory.
Click to reveal answer
intermediate
How do you enable event logging for Spark jobs to be visible in the History Server?
Set the configuration spark.eventLog.enabled to true and specify spark.eventLog.dir to a storage path before running your Spark job.
Click to reveal answer
intermediate
What information can you find in the Spark History Server UI?
You can see job timelines, stages, tasks, executors, and detailed metrics like duration, shuffle read/write, and errors.
Click to reveal answer
beginner
How do you start the Spark History Server?
Run the command: ./sbin/start-history-server.sh from your Spark installation directory. It will start a web UI to monitor past jobs.
Click to reveal answer
What must be enabled for Spark History Server to show job details?
Aspark.eventLog.enabled
Bspark.history.enabled
Cspark.ui.enabled
Dspark.job.monitoring
✗ Incorrect
spark.eventLog.enabled must be true to save event logs for the History Server.
Where does Spark History Server read event logs from?
AFrom the Spark driver memory
BFrom the configured event log directory
CFrom the Spark executor logs
DFrom the Spark UI cache
✗ Incorrect
It reads event logs from the directory set in spark.eventLog.dir.
Which command starts the Spark History Server?
A./bin/start-spark-history.sh
Bstart-spark-history-server
Cspark-history-server start
D./sbin/start-history-server.sh
✗ Incorrect
The correct command is ./sbin/start-history-server.sh.
What kind of information can you NOT find in the Spark History Server UI?
AReal-time job progress
BJob timelines and stages
CExecutor metrics and task details
DError messages from completed jobs
✗ Incorrect
The History Server shows completed job info, not real-time progress.
If you want to change where Spark saves event logs, which config do you update?
Aspark.log.dir
Bspark.history.dir
Cspark.eventLog.dir
Dspark.history.log.path
✗ Incorrect
spark.eventLog.dir sets the directory for event logs.
Explain how to set up Spark to use the History Server for monitoring completed jobs.
Think about configuration, starting the server, and viewing results.
You got /4 concepts.
Describe what kind of job information you can find in the Spark History Server UI and why it is useful.
Focus on the types of data and their purpose.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of the Spark History Server in monitoring Spark applications?
easy
A. To monitor real-time streaming data only
B. To view details of completed Spark jobs using saved event logs
C. To configure Spark cluster resources dynamically
D. To submit new Spark jobs to the cluster
Solution
Step 1: Understand Spark History Server role
The Spark History Server reads event logs from completed jobs to provide detailed information about them.
Step 2: Differentiate from other Spark components
Unlike job submission or real-time monitoring, it focuses on past job performance using saved logs.
Final Answer:
To view details of completed Spark jobs using saved event logs -> Option B
Quick Check:
Spark History Server = View completed job details [OK]
Hint: History Server shows past jobs, not live or submission tasks [OK]
Common Mistakes:
Confusing History Server with job submission tools
Thinking it monitors only live streaming jobs
Assuming it manages cluster resources
2. Which Spark configuration property must be set to enable event logging for the History Server?
easy
A. spark.sql.shuffle.partitions
B. spark.history.fs.logDirectory
C. spark.executor.memory
D. spark.eventLog.enabled
Solution
Step 1: Identify event logging property
The property spark.eventLog.enabled controls whether Spark saves event logs for completed jobs.
Step 2: Differentiate from other configs
spark.history.fs.logDirectory sets log location, not enabling logging; others relate to memory or shuffle partitions.