Apache Spark runs batch and streaming analytics, SQL, machine learning, and graph workloads on one node or clusters. APIs are available in Python, Scala, Java, and R.
Overview
Apache Spark is a multi-language engine for data engineering, data science, and machine learning on single-node machines or clusters. It targets large-scale analytics with a unified programming model rather than separate tools for each workload type.
High-level APIs in Scala, Java, Python, and R sit on an optimized runtime that supports general computation graphs for data analysis. Built-in modules include Spark SQL for SQL and DataFrames, pandas API on Spark, MLlib for machine learning, GraphX for graphs, and Structured Streaming for stream processing.
You can process data in batches and real-time streams in the languages you already use. Spark SQL runs distributed ANSI SQL for dashboarding and ad-hoc reporting, works on structured tables and unstructured formats such as JSON, and uses adaptive query execution to adjust plans at runtime.
Installation can be as simple as installing PySpark with pip and starting the PySpark shell, or running the official Docker images for PySpark, Spark SQL, Spark shell, or SparkR. Jobs can run locally, on a Spark cluster URL, or on YARN. The project integrates with common data science, SQL, and storage stacks in its ecosystem.
Spark uses the Hadoop core library to talk to HDFS and other Hadoop-supported storage, so builds may need to match the Hadoop version on your cluster.
Key features
- Batch and structured streaming in one engine
- Spark SQL and distributed ANSI SQL
- APIs in Python, Scala, Java, and R
- MLlib for machine learning
- GraphX for graph processing
- pandas API on Spark
- Adaptive query execution in Spark SQL
- Official Docker images for shells and SQL
Use cases
- Large-scale batch data processing
- Real-time stream processing
- Distributed SQL analytics and reporting
- Machine learning at cluster scale
- Exploratory analysis on very large datasets
Does the same job as
Apache Spark doesn't name these products itself, but its own description shows it does the same job.