How does Apache Spark work?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

I am online Quran teacher 7 years

Apache Spark is a distributed computing framework designed for big data processing. Here's a simplified overview of how it works: 1. **Resilient Distributed Datasets (RDDs)**: RDDs are the fundamental data structure in Spark. They are distributed collections of data objects that can be operated on...
read more
Apache Spark is a distributed computing framework designed for big data processing. Here's a simplified overview of how it works: 1. **Resilient Distributed Datasets (RDDs)**: RDDs are the fundamental data structure in Spark. They are distributed collections of data objects that can be operated on in parallel. RDDs are fault-tolerant, meaning they can recover from failures automatically. 2. **Transformation and Action**: Spark provides two types of operations on RDDs: transformations and actions. Transformations create a new RDD from an existing one (e.g., map, filter, reduceByKey), while actions perform computation and return results (e.g., count, collect, save). 3. **Lazy Evaluation**: Spark uses lazy evaluation, meaning transformations are not executed immediately. Instead, they are queued up until an action is called. This optimization minimizes unnecessary computations. 4. **Directed Acyclic Graph (DAG)**: Spark builds a directed acyclic graph of the transformations called on RDDs. This DAG represents the logical execution plan of the computation. 5. **Fault Tolerance**: Spark achieves fault tolerance through RDD lineage. If a partition of an RDD is lost due to node failure, Spark can reconstruct it using the information in the lineage graph. 6. **Data Processing Engines**: Spark supports various data processing engines, including batch processing (Spark Core), SQL queries (Spark SQL), streaming data (Spark Streaming), machine learning (MLlib), and graph processing (GraphX). 7. **Cluster Manager**: Spark can run on various cluster managers, such as Apache Mesos, Hadoop YARN, or Kubernetes, to manage resources and coordinate job execution across a cluster of machines. Overall, Spark's combination of distributed computing, in-memory processing, and fault tolerance makes it a powerful framework for processing large-scale data efficiently. read less
Comments

Related Questions

What should be the fees for Online weekend Big Data Classes. All stack Hadoop, Spark, Pig, Hive , Sqoop, HBase , NIFI, Kafka and others. I Charged 8K and people are still negotiating. Is this too much?
Based on experience we can demand and based on how many hours you are spending for whole course. But anyway 8K is ok. But some of the people are offering 6k. So they will ask. Show your positives compare...
Binay Jha

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Lets look at Apache Spark's Competitors. Who are the top Competitors to Apache Spark today.
Apache Spark is the most popular open source product today to work with Big Data. More and more Big Data developers are using Spark to generate solutions for Big Data problems. It is the de-facto standard...
B

Biswanath Banerjee

1 0
0

Hadoop v/s Spark
1. Introduction to Apache Spark: It is a framework for performing general data analytics on distributed computing cluster like Hadoop.It provides in memory computations for increase speed and data process...

Big Data & Hadoop - Introductory Session - Data Science for Everyone
Data Science for Everyone An introductory video lesson on Big Data, the need, necessity, evolution and contributing factors. This is presented by Skill Sigma as part of the "Data Science for Everyone" series.

IoT for Home. Be Smart, Live Smart
Internet of Things (IoT) is one of the booming topics these days among the software techies and the netizens, and is considered as the next big thing after Mobility, Cloud and Big Data.Are you really aware...
K

Kovid Academy

1 0
0

Big Data for Gaining Big Profits & Customer Satisfaction in Retail Industry
For any business, the key success factor relies on its ability for finding the relevant information at the right time. In this digital world, it has become further crucial for the retailers to be aware...
K

Kovid Academy

5 1
1

Looking for Apache Spark ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you