I wrote a simple ring buffer class to use in my Spark apps. I register it as a string variable, and then I can read it from the Spark Cloud. It makes it easy to log arbitrary messages from my Spark Cores.
In case it’s useful to anyone else I put it up on github: