Monitoring Spark using SparkListeners
Apache Spark 2.4.1 / Spark Core
EventLoggingListener and History Server
- EventLoggingListener is a SparkListener that logs JSON-encoded events to a file.
- History Server is a web interface for completed and running Spark applications.
- Switch to The Internals of Apache Spark
StatsReportListener — Logging Summary Statistics
- StatsReportListener is a SparkListener that logs summary statistics when each stage completes.
- Switch to The Internals of Apache Spark
Exercise: Developing Custom SparkListener
- Creating Scala/sbt project in IntelliJ IDEA
- Creating a Scala class - CustomSparkListener
- Creating deployable package using sbt package
- Activating SparkListener in Spark shell using spark.extraListeners
- Switch to The Internals of Apache Spark