add mapreduce for batch timeseries processing