Artificial Intelligence for Cost-Aware Resource Prediction in Big Data Pipelines