updated mapreduce api tutorial