Skip to content

JasonMWhite/spark-datadog-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Implements SparkFirehoseListener for forwarding Spark events to statsd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages