Code to accompany Advanced Analytics with Spark from O'Reilly Media