Sparkstats: Multi-Version Spark Support
Starting with Pulse 4.2.0, Sparkstats supports monitoring multiple Apache Spark versions from a single deployment.
A single Sparkstats deployment can monitor Spark applications running on different Spark versions in the same environment, eliminating the need to deploy separate Sparkstats instances for each Spark version. This simplifies deployment, upgrades, and ongoing maintenance.
Key Benefits
- Monitor Spark 2.x, Spark 3.x, and Spark 4.x workloads from a single Sparkstats deployment.
- Eliminate the need to deploy separate Sparkstats instances for different Spark versions.
- Simplify deployment, upgrades, and maintenance.
- Monitor mixed-version Spark environments from a unified Pulse interface.
Supported Deployment Types
Sparkstats supports monitoring the following deployment types:
- Spark on YARN
- Spark Standalone
- Spark on Kubernetes
Data Collection Methods
Sparkstats supports the following methods to collect Spark application data.
Hook-Based Collection (Recommended)
When Spark Hook is enabled, Sparkstats collects Spark application metrics during job execution, providing real-time observability in the Pulse UI.
To enable hook-based collection, verify that the following property is set to true in the Sparkstats configuration. By default, it's set to true.
Configuration file
- /data01/acceldata/config/docker/addons/ad-core-connectors.yml
Property
SPARKSTATS_EVENTS_FROM_HOOK=trueThe ad-sparkstats service is part of the ad-core-connectors configuration. Verify that the following setting exists under the ad-sparkstats section.
ad-sparkstats:
...
environment:
...
- NATS_SERVER_HOST_LIST=ad-events:4222
- SPARKSTATS_EVENTS_FROM_HOOK=trueFor information about configuring Spark Hook, see the following pages.
Spark Version Visibility
Pulse displays the Spark version associated with each monitored Spark application.

You can use this information to:
- Identify the Spark version used by each application.
- Filter applications by Spark version.
- Compare workloads across Spark versions.
- Track Spark version migrations over time.
Partitioned Spark Event Publishing
SparkHook distributes events across NATS partitions using a hash-based mechanism. Docker-based Pulse deployments use a single partition, while Kubernetes-based deployments use 32 partitions by default. You can configure the partition count using the spark.ad.hook.nats.partitions parameter in the $SPARK_HOME/conf/spark-defaults.conf file on the Hadoop node.
Note
$SPARK_HOME/conf/spark-defaults.conf is the standard Spark configuration file path. The actual path may vary depending on the Spark installation and cluster configuration.
Apache Spark 4 Support
Sparkstats now supports monitoring Apache Spark 4 in addition to Spark 2.x and Spark 3.x.
A single Sparkstats deployment built on Scala 2.12 can monitor Spark 2.x, Spark 3.x, and Spark 4 applications without requiring separate deployments, providing unified observability across mixed-version Spark environments.

Have a suggestion?