This is an Apache Spark web monitoring tool, named varOne.
varOne provides a web UI for you to monitor the metrics of Spark applications more efficiently and easily. varOne ingests the spark event logs and metric data to summarizes them as rich charts. If you don't want to use this web UI, you can use the RESTful APIs provided by varOne and custom one by yourself.
Tip:
metrics.propertiesexists in $SPARK_HOME/conf.
Setting the below flag when using spark-submit:
--files=/path/to/metrics.properties --conf spark.metrics.conf=metrics.properties
or set the properties in you application. For example:
val sparkConf = new spark.SparkConf()
.set("spark.metrics.conf.*.sink.csv.class", "org.apache.spark.metrics.sink.CsvSink")
.set("spark.metrics.conf.*.sink.csv.period", "1")
.set("spark.metrics.conf.*.sink.csv.unit", "seconds")
.set("spark.metrics.conf.*.sink.csv.directory", "/path/to/CSV_SINK")
.set("spark.metrics.conf.driver.source.jvm.class", "org.apache.spark.metrics.source.JvmSource")
.set("spark.metrics.conf.executor.source.jvm.class", "org.apache.spark.metrics.source.JvmSource")
val sc = new spark.SparkContext(sparkConf)
Enable Spark event log, in $SPARK_HOME/conf/spark-defaults.conf
spark.eventLog.enabled to truespark.eventLog.dir to a HDFS folderTip: varOne only support eventLog be storaged on HDFS currently, we will loose this restriction in near future.
Click here to download varOne-0.1.0
Deploy the varOne-0.1.0.tgz to each node in your cluster and untar all of it
Then pick one node to start all daemonds by following instructions:
varOne-site.xml in $VARONE_HOME/conf directoryvarOne-env.sh in $VARONE_HOME/conf directory
SPARK_HOMEvaronedaemond in $VARONE_HOME/conf directory
./bin/varOned-all.sh startAfter running, you can check whether VarOned process listed by jps
In addition, you can stop all varOne daemond as this command: ./bin/varOned-all.sh stop
Follow below steps to start varOne web server:
varOne-site.xml in $VARONE_HOME/conf directoryvarOne-env.sh in $VARONE_HOME/conf directory
SPARK_HOMEHADOOP_CONF_DIR./bin/varOne.shAfter running, open browser and go to http://localhost:8080/varOne-web/index.html
varOne.server.port
varOne.node.port
varOne.node.thread.number
varOne.server.context.path
varOne.war.tempdir