Apache Spark

Apache Spark Tutorial

Spark Save a File Without a Folder or Renaming Part Files

Apache Spark is a powerful distributed processing system used for big data workloads. It has extensive APIs for working with big data, including tools for reading and writing a variety of file formats. However, when saving output to a file system, Spark writes data in multiple parts and typically adds a directory structure to organize …

Spark Save a File Without a Folder or Renaming Part Files Read More »

Reading and Writing Spark DataFrames to Parquet with {Examples}

Apache Spark is a powerful distributed computing system that allows for efficient processing of large datasets across clustered machines. One of Spark’s features is its ability to interact with a variety of data formats, including Parquet, a columnar storage format that provides efficient data compression and encoding schemes. Parquet is commonly used in data-intensive environments …

Reading and Writing Spark DataFrames to Parquet with {Examples} Read More »

Mastering GroupBy on Spark DataFrames

Apache Spark is an open-source, distributed computing system that provides a fast and general-purpose cluster-computing framework. Spark’s in-memory processing capabilities make it very well suited for iterative algorithms in machine learning, and its powerful caching and persistence capabilities benefit data analysis applications. One of the core components of Spark is the DataFrame API, which provides …

Mastering GroupBy on Spark DataFrames Read More »

Filter vs Where in Spark DataFrame: Understanding the Differences

In the realm of data processing and analysis with Apache Spark, filtering data is a fundamental task that enables analysts to work with only the relevant subset of a dataset. When performing such operations in Spark using Scala, two methods that often come into play are `filter` and `where`. Though they can sometimes be used …

Filter vs Where in Spark DataFrame: Understanding the Differences Read More »

Spark Retrieving Column Names and Data Types from DataFrame

Apache Spark is a powerful, distributed data processing engine that allows for the large-scale analysis and manipulation of data. When dealing with dataframes in Spark, it’s often necessary to understand the structure of the underlying data. Part of this understanding requires us to know the column names and their respective data types. This comprehensive guide …

Spark Retrieving Column Names and Data Types from DataFrame Read More »

Implementing Broadcast Join in Spark

When dealing with large-scale data processing, one common challenge that arises is efficiently joining large datasets. Apache Spark, a fast and general-purpose cluster computing system, provides several strategies to perform joins. One such strategy is the broadcast join, which can be highly beneficial when joining a large dataset with a smaller one. In this long-form …

Implementing Broadcast Join in Spark Read More »

Creating Spark RDD using Parallelize Method

Apache Spark is a powerful cluster computing system that provides an easy-to-use interface for programming entire clusters with implicit data parallelism and fault tolerance. It operates on a wide variety of data sources, and one of its core abstractions is the Resilient Distributed Dataset (RDD). An RDD is a collection of elements that can be …

Creating Spark RDD using Parallelize Method Read More »

Generating Java RDDs from Lists in Spark

Apache Spark is a fast and general-purpose cluster-computing framework for processing large datasets. It offers high-level APIs in Java, Scala, Python, and R, along with a rich set of tools for managing and manipulating data. One of Spark’s core abstractions is the Resilient Distributed Dataset (RDD), which lets users perform distributed computing tasks across many …

Generating Java RDDs from Lists in Spark Read More »

Scroll to Top