Automatic Tuning of Data-Intensive Analytical Workloads