Hadoop mapper and reducer