mongoDB+spark+template