org.apache.spark.deploy.history.DataFlintHistoryServerPlugin.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark_2.13 Show documentation
Show all versions of spark_2.13 Show documentation
Open Source Data-Application Performance Monitoring for Apache Spark
The newest version!
package org.apache.spark.deploy.history
import org.apache.spark.SparkConf
import org.apache.spark.dataflint.DataflintSparkUILoader
import org.apache.spark.dataflint.listener.DataflintListener
import org.apache.spark.scheduler.SparkListener
import org.apache.spark.status.{AppHistoryServerPlugin, ElementTrackingStore}
import org.apache.spark.ui.SparkUI
class DataFlintHistoryServerPlugin extends AppHistoryServerPlugin {
override def createListeners(conf: SparkConf, store: ElementTrackingStore): Seq[SparkListener] = {
Seq(new DataflintListener(store))
}
override def setupUI(ui: SparkUI): Unit = {
DataflintSparkUILoader.loadUI(ui)
}
}