separated mapreduce and spark programs