Databricks vs Apache Spark

Databricks is a managed platform built on Apache Spark, billed in DBUs on top of cloud compute. Self-hosted Spark removes the DBU layer but makes your team responsible for the notebook, orchestration, catalog and access tooling that Databricks provides.

On this page

Databricks vs Apache Spark: when a self-hosted Spark platform fits

If a renewal, a rise in DBU invoices or a data residency rule has you asking whether you still need the Databricks layer, the short answer is that Apache Spark is the engine under Databricks, and running Spark yourself is a platform build, not a license swap. Databricks adds the workspace, notebooks, job orchestration, the Unity Catalog governance layer, Photon and serverless compute on top of Spark. Removing the DBU line means you take ownership of every one of those functions, or decide which of them you can do without.

Databricks fits teams that want a managed workspace, a governed catalog and vendor-run upgrades, and that would rather pay DBUs than staff a platform group. Self-hosted Spark fits teams that already have platform engineers, Kubernetes or YARN operations experience, and a concrete reason to own the stack, such as a residency requirement or a cost structure that has become hard to justify. Spark itself is Apache-2.0 licensed and runs on standalone, YARN or Kubernetes clusters, and Delta Lake is an Apache-2.0 Linux Foundation project whose tables are Parquet files plus a transaction log in your own object storage. Those facts make the data easier to keep after an exit. They do not remove the work of replacing notebooks, scheduling and catalog functions.

The decision turns on four things. First, team skills: who will write the Spark upgrade plan, tune executors and debug failed jobs at 2 a.m. Second, governance needs: identify which Unity Catalog permissions, lineage and audit trails your auditors expect, then confirm which open catalog or metadata tool covers them. Third, on-call capacity: a self-hosted cluster needs someone accountable for availability, patching and incident response. Fourth, where data must live: confirm whether the requirement is for the data, the control plane or both, because a Databricks deployment keeps its control plane in the Databricks account. Ask your team to write these answers down before comparing any quote.

Which option fits which team

This table matches common team profiles to either managed Databricks or self-hosted Apache Spark, naming the better fit and the condition under which the open-source route wins. Read each row against your own staffing, compliance boundary and workload mix, since the deciding factor is usually who will carry the operational load.

Team profileBetter fitWhy and when open-source Spark wins
Small data team with no platform engineersDatabricksWorkspace, managed clusters, job scheduling and Unity Catalog arrive configured. Self-hosted Spark wins only if you can name an owner for Kubernetes or YARN, upgrades and on-call before go-live.
Regulated team that must keep control plane and data in its own environmentSelf-hosted SparkDatabricks keeps its control plane in the Databricks account, while Spark, Delta tables and the catalog can run entirely in your accounts. Open-source wins when assessors require that boundary and your security team can operate the stack.
Team with Kubernetes operators already in placeSelf-hosted SparkThe Apache Spark Kubernetes Operator manages Spark applications through the operator pattern, so existing cluster tooling, quotas and GitOps practices carry over. Open-source wins when your platform team already runs stateful workloads this way.
ML team needing notebooks for many concurrent usersDatabricksManaged notebooks, shared clusters and access controls are built in. Spark does not include a notebook workspace, so self-hosted use needs JupyterHub or similar, plus identity integration and resource quotas that someone must maintain.
Team that mainly runs scheduled SQL transformsEither, depending on orchestrationSpark SQL runs the transforms, but scheduling, retries and alerting must come from an orchestrator such as Apache Airflow. Open-source wins when transforms are stable and your team already operates an orchestrator; otherwise Databricks Jobs reduces assembly work.
Team standardizing on Delta tables in its own object storageEither, with open formatsDelta Lake is Apache-2.0 under the Linux Foundation, so tables can be read by Spark, Trino and other engines without a Databricks runtime. Open-source wins when you need the same tables queried by several engines and want no platform dependency for reads.
Team with a fixed Spark version and tight change controlSelf-hosted SparkYou choose the Spark release line and upgrade timing. Confirm the support window for your chosen line in the Spark versioning policy before you commit, since maintenance periods differ between feature and LTS releases.

Where data and control sit in each model

The two models differ mainly in who runs the control plane and who holds the keys to the data path. Read each card against your own cloud account layout, network rules and audit requirements, because the answer depends on how you configure either option.

Databricks control plane

Databricks runs the workspace control plane, including the web application, job scheduling and account administration, in the Databricks account. Compute and storage can still sit in your cloud account, so the question is which metadata, logs and job definitions leave your boundary. Ask Databricks for the current description of control plane and data plane traffic for your cloud and deployment type, and map each flow to your data classification rules.

Databricks Delta docs

Self-hosted Spark boundary

With self-hosted Spark on Kubernetes or YARN, the driver, executors, cluster manager and storage all run in accounts or hardware you control. Nothing needs an outside control plane to run a job. The trade-off is that every component you add, from the scheduler to the notebook server, also falls inside your patching, hardening and monitoring scope. Confirm which cluster manager your Spark version and platform team support.

Spark cluster overview

Delta tables in your storage

Delta tables are Parquet data files plus a transaction log stored in cloud object storage, so the table data remains in a bucket you own under either model. This makes the exit path concrete: engines such as Spark and Trino can read the same files after a move. Check who holds write credentials, whether object versioning and retention are enabled, and how the log is protected against accidental deletion.

Delta Lake website

Identity, SSO and audit logging

Managed Databricks provides workspace login, role-based access and audit logs as product features that you configure in its admin settings. Self-hosted Spark has none of these by default, so you must assemble SSO with your identity provider, access control for notebooks and jobs, and an audit trail across Spark, the orchestrator and the catalog. Ask which logs an auditor will need and confirm each one has a source before go-live.

Compliance evidence ownership

DeployOpen can plan and implement the access, logging, backup and change controls that a self-hosted stack needs, and prepare the evidence your compliance team collects. Auditors and certification bodies issue any report or attestation, not DeployOpen. Agree with your assessor, in writing, which controls they will test and which evidence formats they accept before the design is frozen.

How a self-hosted Spark stack is assembled

Plan the stack as separate layers before you install anything, because Apache Spark only covers the compute engine. Spark's cluster overview lists three cluster managers: its own standalone manager, Hadoop YARN and Kubernetes. In each case a driver program coordinates a set of executors on worker nodes, and the driver turns your job into tasks that run in parallel. Choose the cluster manager first, since it decides how you scale, isolate teams and recover failed jobs. Kubernetes is the common choice where the platform team already runs clusters, and the Apache Spark Kubernetes Operator manages Spark applications through that pattern. Confirm which cluster manager and Spark line your engineers and vendors support, and check the Apache Spark versioning policy for how long each release line is maintained.

Storage sits outside the cluster. Keep tables in S3-compatible or cloud object storage as Parquet files with a Delta Lake transaction log, so compute can be replaced without moving data. Spark does not provide a catalog or access control layer, so you must add one. Decide which catalog will register Delta tables, how table permissions are enforced, and how credentials for the bucket reach executors without being written into notebooks or spark-defaults.conf. Notebooks are usually served by JupyterHub, and Apache Airflow typically handles scheduled jobs. Monitoring needs its own design: Spark's driver and executor logs, job metrics and bucket access logs are separate sources, and someone must own alerts for failed stages and stalled executors.

Spark Connect changes where notebooks run. It is a client-server architecture in which thin clients send unresolved logical plans over gRPC and receive Apache Arrow batches, with PySpark clients available since Spark 3.4 and Scala clients since 3.5. This lets you run a shared Spark Connect server on the cluster while analysts connect from lightweight notebook kernels, instead of starting a full driver for every user. Test this pattern before you commit to it: confirm which APIs your existing notebooks use, whether your Python libraries work with the client, and how the server handles resource quotas when several people query at once. Spark's cluster overview and Spark Connect documentation are the places to verify these details against the version you plan to run.

How the layers fit in a self-hosted Spark platform

The diagram starts with analysts and engineers working in JupyterHub notebooks or Spark Connect clients inside the customer's boundary. Those clients hand work to an orchestrator, which submits Spark applications to Kubernetes or YARN, where executors read and write Delta tables in object storage. A catalog and identity layer sits between the clients and the data, and it is the part to check first: confirm that every path to the tables passes through it, that object storage permissions match the catalog grants, and that nothing reaches the data from outside the boundary.

Self-hosted Spark layers inside the customer's trust boundary.

What you pay for in each model

Both models pay for the same cloud compute and storage underneath, so the difference is the layer on top. The cards separate what Databricks bills, what you pay the cloud provider or hardware owner, and what you take on yourself when you run Spark without a platform vendor.

Databricks DBU charges

Databricks bills usage in Databricks Units, a normalized measure of processing power, per second on pay-as-you-go or committed-use contracts. This is a recurring charge that rises with cluster size, job frequency and how long clusters stay on. No DBU rates are supplied here, so ask for the committed-use terms and model them against your own usage data before comparing totals.

Databricks pricing

Cloud compute and storage

In the Databricks model, your cloud provider bills the virtual machines, object storage and networking that run Spark and hold Delta tables. The same invoice lines appear in a self-hosted Spark model, so they are not a saving on their own. Recurring costs follow cluster hours, data volume and cross-region egress, and reserved or committed capacity from the provider is worth pricing for both options.

Platform engineering and tooling

Spark does not ship a notebook workspace, job scheduler UI, catalog or access control layer, so a self-hosted deployment needs people to design, deploy and operate tools such as JupyterHub, Apache Airflow and a table catalog. The main cost is staff time, which recurs. Ask whether the work is in-house, contracted on a fixed scope, or on a retainer, and what each choice includes.

Spark version upgrades

Spark's versioning policy maintains each feature branch for 6 months and makes the last release in each major line an LTS with 18 months of support. The 3.5.x extended LTS ends in November 2027 with security fixes only. Upgrade work recurs on that cadence, and its size grows with the number of pipelines, custom connectors and tooling that must move with Spark.

Spark versioning policy

Catalog, security and monitoring

Unity Catalog handles permissions, lineage and the governance workflow inside Databricks. In a self-hosted model you pay for a catalog, access control, secrets handling, audit logging and monitoring, either as open-source components you operate or as commercial licenses. These are partly one-time setup and partly recurring operation, and the scale of data sharing and the number of compliance controls drive the effort.

On-call and support coverage

Managed platforms carry a vendor support contract, while a self-hosted cluster makes your team the first responder for failed jobs, node issues and security patches. Recurring costs include on-call rotations, incident response and the time to write runbooks. Coverage hours, the number of production pipelines and your tolerance for overnight failures set the size of this line.

What a move from Databricks to self-hosted Spark involves

The sequence below moves compute and orchestration off the Databricks platform while leaving your Delta tables in your own object storage, so each step ends with a check that the workload runs without a Databricks dependency.

  1. Inventory workspaces, jobs, clusters and APIs

    Your platform or data engineering team lists every workspace, notebook folder, scheduled job, cluster policy, library, secret scope and init script, then flags anything that calls a Databricks-only API such as dbutils, the Databricks SDK or Databricks-specific Delta features. Record which tables each job reads and writes, and which external systems (BI tools, Git repositories, identity provider) connect to the workspace. The output is a written inventory with an owner and a migration target for each item, which becomes the scope document for the rest of the sequence.

  2. Confirm Delta tables sit in your own storage

    Check where each table's files live. Delta tables are Parquet files plus a transaction log in cloud object storage, so tables on an external location or in a bucket you control can be read by Spark without moving data. Tables in Databricks-managed default storage need a plan to copy them to a bucket you own before the workspace is retired. The check is complete when every table has a documented storage path, a readable transaction log outside Databricks, and a tested read from a plain Spark session.

  3. Stand up Spark on Kubernetes or YARN

    Your platform team deploys Spark on the cluster manager you already operate, usually Kubernetes with the Apache Spark Kubernetes Operator or Hadoop YARN, using the Spark release line your support policy allows. Configure object storage access, Delta Lake packages, resource quotas and logging, and confirm that a test job submits, runs and writes output. Spark does not ship a notebook, scheduler or catalog, so this step also picks those components. The check is a repeatable job submission that completes and leaves a Delta table readable by a second engine.

  4. Add an orchestrator and notebook environment

    Replace Databricks Jobs with an orchestrator such as Apache Airflow, and replace the workspace notebook experience with a self-hosted environment such as JupyterHub, with access to the same Spark cluster. Port job definitions, schedules, retry rules and alerting into orchestrator code, and wire notifications to the channels your on-call team already uses. Done means each migrated job runs on schedule from the orchestrator and reports status without anyone opening the Databricks UI.

  5. Replace Unity Catalog and map permissions

    Choose an open catalog, such as Unity Catalog OSS or another catalog your data governance team has approved, and register the migrated tables in it. Translate each Unity Catalog grant into the access model of the new catalog and the storage layer, then test that a user with a given role can read exactly the tables they could read before. Record lineage gaps and audit log differences, since Unity Catalog features such as lineage and audit history may not map one to one. The check is a permission test matrix signed off by the data owners.

  6. Export notebooks as source or Jupyter files

    Export notebooks from the workspace in source or Jupyter format and store them in Git so they are versioned outside Databricks. Remove Databricks magic commands, dbutils calls and workspace-only paths, and replace them with Spark session configuration and environment variables. Run each notebook against the new Spark environment with representative input. The output is a Git repository where every notebook runs from a clean checkout and the Databricks-only code paths are listed as resolved.

  7. Run both platforms in parallel and cut over job by job

    Run each migrated job on both Databricks and self-hosted Spark for a period your team agrees with the data owners, and compare row counts, checksums, schemas and business reports. Cut over jobs one at a time, starting with low-risk ones, and keep the Databricks version available for rollback until its output has matched. Retire workspaces only after every job, table consumer and access rule has moved. The closing check is a signed cutover record per job and a final inventory showing no remaining dependencies.

Questions teams ask before choosing self-hosted Spark

Can a small team run Apache Spark without a platform vendor?

Yes, but only if the team can own the parts Databricks currently provides. Apache Spark is Apache-2.0 licensed and runs on single-node machines or clusters, so the engine itself has no license fee. What Spark does not include is a notebook workspace, a job scheduler UI, a catalog or an access control layer. A small team usually needs to assemble JupyterHub, Apache Airflow, a table catalog and identity integration, then run them. Ask whether your team has someone who can operate that stack after handover, because the work does not end at first deployment.

What cost components change when moving from Databricks to self-hosted Spark?

The DBU charge disappears, but cloud compute, storage and networking stay on your bill, since Databricks already bills those through your cloud provider. The costs that move are the platform work you take on: cluster infrastructure, upgrades, backups, monitoring, catalog and orchestration tooling, and on-call support. Costs that recur include cloud compute and staff time. Costs that are mostly one-time include the initial build, notebook conversion and migration testing. Ask any provider for a quote that separates these lines so you can compare them with your current Databricks invoices.

How long does a move from Databricks to self-hosted Spark take?

No fixed duration applies to every environment, so treat any single number with caution. The timeline depends on how many notebooks and jobs use Databricks-only APIs, how many workspaces and users you have, how many Unity Catalog permissions must be recreated, and how much of your identity and network setup must be rebuilt. Ask for a written scope that lists each workload, its dependencies and a cutover plan, then confirm how long each phase is expected to take in your own environment before you commit.

What skills does a self-hosted Spark platform require from the team?

The team needs working knowledge of Spark itself, Kubernetes or Hadoop YARN depending on the cluster manager you choose, identity and single sign-on, object storage access controls, and on-call operations. Spark's cluster overview lists Spark standalone, Hadoop YARN and Kubernetes as cluster managers, and each brings its own operating model. Check whether your platform team already runs Kubernetes in production and whether they have someone who can troubleshoot Spark executors and driver failures at night.

Do Delta tables need to be converted before moving off Databricks?

Usually no. Delta Lake stores data as Parquet files plus a transaction log in cloud object storage, and it is an Apache-2.0 Linux Foundation project. Delta.io lists Spark and Trino among the engines that work with Delta Lake, so tables already in your bucket can often stay where they are and be read by open engines. Confirm with your own tables whether they rely on Databricks-specific features, and test reads and writes from your target engines before cutover.

Which Spark version line should a new self-hosted deployment choose?

Choose the line that matches your support window and your Scala and Python versions. Apache Spark 4.2.0 was released on July 14, 2026, and 3.5.9 followed on July 16, 2026. Spark's versioning policy says each major and feature branch is maintained for 6 months, and the last release in each major line is an LTS maintained for 18 months. The 3.5.x extended LTS ends in November 2027 with security fixes only. Spark 4 requires Scala 2.13, so check your libraries before upgrading. Confirm the current support dates on the Spark versioning policy page before you commit.

Do Photon and serverless Databricks features have open-source equivalents?

Not as drop-in replacements, and this needs confirmation for your workloads. Photon is Databricks' vectorized query engine, and serverless compute is a Databricks-managed option, so neither is part of Apache Spark. Spark's own query optimizer and Spark Connect cover much of the SQL and client-server need, while alternatives such as Trino or ClickHouse may suit some SQL workloads. Benchmark your own queries on the target engines, and ask any implementation partner to confirm which performance and operational behaviors will change.

When staying on Databricks is the better decision

Staying on Databricks is often the right call for a team that does not employ Spark operators. Databricks supplies the parts that a self-hosted Spark platform leaves to you: a managed workspace with notebooks, job orchestration, Unity Catalog for permissions and lineage, serverless compute that removes cluster sizing from daily work, and vendor support for incidents. Each of those is platform effort that you would otherwise staff, patch and document yourself. For a small data engineering group that has to deliver pipelines to the business, that effort is usually the scarcest resource, and buying it back through DBUs can be a sound trade.

Several conditions tilt the decision toward staying. The first is a large population of analysts and data scientists who need shared notebooks with access control, versioning and scheduled runs, because building and supporting that experience on JupyterHub, Airflow and a catalog takes sustained work. The second is a tight delivery date, since a migration to self-hosted Spark moves cluster provisioning, catalog choice and job migration onto your critical path. The third is no appetite for on-call: if nobody on the team wants to be paged for executor failures, driver memory problems or Spark upgrades, a managed control plane has real value.

Before you decide, ask Databricks for a written breakdown of DBU consumption by workload type, including serverless and classic jobs, and compare it with the platform headcount you would need for a self-hosted stack. Confirm which Unity Catalog features your compliance team relies on, and whether your data residency requirements can be met with the control plane in the Databricks account. If the answers show that the platform effort is the dominant cost, staying is defensible. If they show that the DBU layer is the dominant cost and you already run Kubernetes well, the comparison below becomes the more useful next step.

How DeployOpen helps evaluate, implement or migrate Spark

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Databricks vs Apache Spark, we start by testing whether your workloads and teams fit a self-hosted Spark platform, then build only what the evaluation justifies.

How we scope

  • Inventory the Databricks workspaces, jobs, notebooks, Delta tables and Unity Catalog permissions your teams actually use today.
  • Decide which Spark workloads move, which stay on managed services, and which need a cluster manager such as Kubernetes or YARN.
  • Agree the written scope, deliverables and timeline before work starts, so the cost of each component is visible in the quote.

How we build

  • Deploy Spark on your chosen cluster manager with the Spark Kubernetes Operator or YARN, with storage kept in your own object store.
  • Assemble the tooling Spark does not ship with, such as a notebook environment, an orchestrator and a table catalog, with SSO and access control.
  • Configure audit logging, secrets handling and network controls so your security and compliance teams can review the platform.

How we hand over

  • Deliver architecture documentation, runbooks, configuration records and the evidence your compliance assessors typically request.
  • Run knowledge transfer with your platform engineers on deployment, upgrades, backups and job troubleshooting.
  • Test the finished platform against the agreed scope, and retest any findings before handover is accepted.

How we support

  • Offer ongoing support, Spark version upgrades and continuous security testing as a retainer after handover.
  • Plan upgrades around Spark's maintenance windows so your team knows which release line is supported and for how long.
  • Review cost drivers over time, such as cluster sizing and storage growth, and report them against the original scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.