Ganesh·Feb 3, 2025How Spark Manages Executor Memory: Real World Example— Part 2In this article, we will explore how Spark manages Executor Memory when we configure it, and take a deeper look into the memory allocation…
Ganesh·Jan 6, 2025Understanding Spark’s Handling of File Reads: RDD vs DataFrameIn this blog, we’ll explore how Spark treats reading from a file using two different APIs: the lower-level RDD API and the higher-level…
Ganesh·Oct 12, 2024Avoiding Data Corruption: The Risks of Reading and Writing to the Same Path in PySparkIn this article, we will explore how Spark behaves when reading from and writing to the same location. Before diving into that, let’s first…
Ganesh·Sep 4, 2024How Spark Manages Executor Memory: An In-Depth Look at Its Architecture — Part 1Apache Spark is renowned for its in-memory processing capabilities, which significantly speed up data processing tasks by minimising disk…
Ganesh·Aug 13, 2024Part 2— Unlocking Potential: The Ultimate Guide to Catalyst OptimizationIn our previous article, we explored the theoretical aspects of Spark’s Catalyst optimizer. Today, we’ll dive into practical examples to…
Ganesh·Aug 4, 2024Part 1 — Unlocking Potential: The Ultimate Guide to Catalyst OptimizationCatalyst Optimizer is at the core of Spark SQL, which leverages advanced programming language features (e.g. Scala’s pattern matching and…
Ganesh·Jul 27, 2024Apache Spark’s Structured API: Maximizing Efficiency with Column String, Object, and Expression…In this article, we will understand various methods of accessing columns within a DataFrame in Apache Spark. Efficient column access is…
Ganesh·Jul 14, 2024Demystifying Complex Datatypes: How to attach Schemas for Arrays, Json and Nested Json in Spark…In this article, let’s delve into how we can attach schemas specifically to CSV files. While schemas are inherently attached to file…
Ganesh·Jul 11, 2024Understanding Execution Differences: Filter Transformation in RDD vs DataFrameIn Apache Spark, the execution order of transformations, particularly map-like transformations followed by filters, differs between RDDs…