Medium🚀 Processing 10 TB Data in Apache Spark in 10 Minutes: How to Choose spark-submit Parameters | by Sriw World of Coding | Cubed
Sitemap
Cubed

Leading publication exploring AI, Crypto, Web3, and the next generation of the internet.

🚀 Processing 10 TB Data in Apache Spark in 10 Minutes: How to Choose spark-submit Parameters

4 min readMay 6, 2025

--

Press enter or click to view image in full size

🔍 Introduction

Apache Spark is a powerful distributed processing engine, but tuning it to handle massive datasets efficiently within tight time constraints can be challenging.

In this post, I’ll show you how to determine the right spark-submit parameters—like executor memory, number of cores, number of executors, and more—to process a 10 TB dataset using 128 MB partition size, and to do it within 10 minutes.

Let’s break it down step-by-step using real numbers and practical insights.

Link to YouTube Video : https://youtu.be/q8PDmWZeUcI

📦 Dataset and Partitioning Strategy

We start with:

  • Data size: 10 TB
  • Partition size: 128 MB (default in Spark)

🧮 Calculate Number of Partitions

--

--