A simple working example of Spark with Java.
$ docker-compose up -d
$ ./db_initializer.sh$ cd .. && mvn clean compile exec:javaFirst 3 million records test rows inserted to the database. Then Sparks read those records and convert them to JSON
in books_json directory.