Optimized Runtime Systems for MapReduce Applications in Multi-core Clusters