Commit for reading the file from local and publishing to mongo and writing it into the csv using Spark