Skip to content

Apache Spark

Distributed engine for large-scale data processing in SQL, Python, Scala and Java

Permissive (OSI) · Apache-2.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

67

Health

Active

Overview

Stars

44,612

Last commit

today

Nov 2026

Repository age

12 years

since Feb 2014

Latest version

–

Contributors

–

45 active in 90 days

Releases

0

last 12 months

Language

Scala

Apache Spark is an analytics engine for processing large datasets. It has APIs in Scala, Java and Python, with R support deprecated. On top of the core engine sit Spark SQL for SQL and DataFrames, a pandas API for pandas workloads, MLlib for machine learning, GraphX for graph processing and Structured Streaming for streams.

You run it yourself. It works on a single machine for development, or on a cluster through a spark:// URL or YARN. The project ships interactive shells for Scala and Python, plus example programs you can run locally. It is built with Apache Maven, and pre-built packages are available. Spark runs on Linux and macOS and is Apache-2.0 licensed.

Spark is the compute engine, not a full platform. It is a partial alternative to Databricks. You get the processing layer, but you build or add your own catalog, lineage, access governance, notebooks, job scheduling and autoscaling.

Who it's for

Data engineering teams building their own platform

You get the open compute engine and can choose the storage, scheduler and governance around it.

Skip if: You want notebooks, a job scheduler and a workspace UI ready to use.

Data scientists working in Python or SQL on large datasets

PySpark, Spark SQL and the pandas API let you scale familiar code from one machine to a cluster.

Skip if: Your data fits comfortably in a single-machine tool, where a cluster engine adds overhead.

Teams processing streams alongside batch data

Structured Streaming and the batch APIs live in the same engine.

Skip if: You need a managed service with elastic autoscaling and no cluster operations.

The problem it solves

Large datasets outgrow one machine, and commercial data platforms tie the compute engine to a vendor's service. Spark gives you the engine under your control, which you can run on your own hardware or cluster.

Strengths

  • APIs in Scala, Java and Python, with SQL and DataFrames
  • Includes MLlib, GraphX and Structured Streaming
  • Runs locally, on YARN or on a standalone cluster
  • Interactive Scala and Python shells for quick tests
  • Apache-2.0 license, first committed in 2014

Trade-offs

  • No built-in catalog, lineage or access governance
  • No managed notebooks, job scheduler or workspace UI
  • No managed autoscaling or storage layer
  • R support is deprecated

Apache Spark replaces

Self-host Apache Spark

Self-hostable
Yes

Quick start

./bin/spark-shell

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Apache Spark free?

Yes. It is open source under the Apache-2.0 license.

Can I self-host it?

Yes. You run it on your own machine or cluster, including YARN.

Does it replace Databricks?

Only in part. Spark is the compute engine. Governance, notebooks, scheduling and autoscaling are not included.

Which languages can I use?

Scala, Java and Python. R is supported but deprecated. You can also use SQL.

Which platforms does it run on?

Linux and macOS, from the command line.

Apache Spark compared

Other Databricks alternatives

Compare all 5 Databricks alternatives →

Similar tools in Data engineering and warehouses

CloudQuery

Data engineering and warehouses

SQL-queryable cloud asset inventory for platform teams across AWS, Azure and GCP

6.6k 566 yesterday Active MPL-2.0

Replaces GCP Cloud Asset Inventory

Airbyte

Data engineering and warehouses

ELT data pipelines with 700+ connectors for data engineers who want to self-host

22k 5.6k today Slowing Elastic-2.0

Replaces Fivetran

Benthos

Data engineering and warehouses

8.8k 985 today Thriving Unknown

Databend

Data engineering and warehouses

Rust data warehouse on object storage with SQL, vector and full-text search

9.5k 902 today Active Apache-2.0

Replaces Snowflake

whodb

Data engineering and warehouses

Self-hosted web workspace for browsing, querying and editing many database types

5.1k 243 today Thriving Apache-2.0

Apache Druid

Data engineering and warehouses

Real-time analytics database for fast queries on large event and time-series data

14k Apache-2.0