mongo-spark is a library providing an interface to consume data from Mongodb to spark and store RDDs from Spark to Mongodb.