Optimizing Hadoop for MapReduce