Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.02 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.02 KB

DatadogRelay

Circle CI

DatadogRelay is a SparkListener that consumes SparkListenerEvents and sends data on to statsd. The server and port are hardcoded to localhost:8125.

To compile, run:

mvn package

To connect it to Spark, add the appropriate flags to spark-shell. For example:

./bin/spark-shell --master local[4] --driver-class-path /path/to/repo/spark-datadog-relay/target/datadog-relay-version.jar --conf spark.extraListeners=org.apache.spark.DatadogRelay

Alternatively, you can use the excellent jitpack:

./bin/spark-shell --master local[4] --repositories https://jitpack.io --packages com.github.JasonMWhite:spark-datadog-relay:version --conf spark.extraListeners=org.apache.spark.DatadogRelay

This approach also works with pyspark.

h/t to https://github.com/hammerlab/spark-json-relay