Spark Job Execution Time Prediction and Optimization using Machine Learning

The performance of big data frameworks like Apache Spark is heavily influenced by runtime configuration parameters such as executor memory, driver memory, number of cores, and shuffle partitions. While Spark offers flexibility in tuning these parameters, identifying the optimal combination is a complex task, often requiring domain expertise and considerable experimentation. Inefficient configurations can lead to excessive execution time, underutilization of resources, and increased operational costs. To address this, the project proposes a machine learning-based framework that predicts the execution time of Apache Spark jobs based on the user-defined configuration settings. Historical job execution data is collected through automated Spark jobs, with different configurations systematically varied. Features are engineered and used to train a Random Forest Regressor model, capable of estimating job execution time with high accuracy. A user-friendly web interface is developed to allow users to input their desired Spark configurations. The trained model then provides near-instantaneous execution time predictions, enabling users to make informed decisions before executing resource-intensive jobs. The system not only saves time and computing resources but also democratizes access to performance tuning insights for both novice and experienced Spark users. Additionally, the modular design of the framework makes it adaptable to cloud environments and other big data platforms. This project showcases the integration of machine learning with distributed data processing systems, leading to intelligent, automated performance optimization in data-intensive applications. KEYWORDS Apache Spark, Execution Time Prediction, Machine Learning, Random Forest, Big Data Optimization, Performance Tuning, Resource Allocation, Spark Configuration, PySpark, Web Interface

Authors

Publication Details

Journal
INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
Published
2025-04-08
DOI
https://doi.org/10.55041/ijsrem44093
Primary Topic
Cloud Computing and Resource Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Spark Job Execution Time Prediction and Optimization using Machine Learning

Jayesh Jayesh, Abhinau K. Venkataramanan, Harish Kumar O, Goldaselia Goldaselia
INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
Cloud Computing and Resource Management
article

Spark Job Execution Time Prediction and Optimization using Machine Learning

Jayesh Jayesh, Abhinau K. Venkataramanan, Harish Kumar O, Goldaselia Goldaselia
article en

Abstract

The performance of big data frameworks like Apache Spark is heavily influenced by runtime configuration parameters such as executor memory, driver memory, number of cores, and shuffle partitions. While Spark offers flexibility in tuning these parameters, identifying the optimal combination is a complex task, often requiring domain expertise and considerable experimentation. Inefficient configurations can lead to excessive execution time, underutilization of resources, and increased operational costs. To address this, the project proposes a machine learning-based framework that predicts the execution time of Apache Spark jobs based on the user-defined configuration settings. Historical job execution data is collected through automated Spark jobs, with different configurations systematically varied. Features are engineered and used to train a Random Forest Regressor model, capable of estimating job execution time with high accuracy. A user-friendly web interface is developed to allow users to input their desired Spark configurations. The trained model then provides near-instantaneous execution time predictions, enabling users to make informed decisions before executing resource-intensive jobs. The system not only saves time and computing resources but also democratizes access to performance tuning insights for both novice and experienced Spark users. Additionally, the modular design of the framework makes it adaptable to cloud environments and other big data platforms. This project showcases the integration of machine learning with distributed data processing systems, leading to intelligent, automated performance optimization in data-intensive applications. KEYWORDS Apache Spark, Execution Time Prediction, Machine Learning, Random Forest, Big Data Optimization, Performance Tuning, Resource Allocation, Spark Configuration, PySpark, Web Interface

INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENTVol. 09(04)
Openalex Percentile: Top 91%
Cloud Computing and Resource Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.