Optimizing the Performance of Data Analytics Frameworks