This repository serves as a start example for a streaming application using spark streaming with docker and as example for this post on medium, where we want to monitore the metrics of this streaming application using Prometheus and Grafana.
docker build -t spark-app .
docker run --name movebis-spark-app \
-e ENABLE_INIT_DAEMON=false \
--link spark-master:spark-master \
-v path-to-your/metrics.properties:/spark/conf/metrics.properties \
--network=dev_setup_default \
spark-app
Note that we have mount the metrics.properties
here.
Read this for the rest.