Hadoop MapReduce code written in Java