Softwr

Databases · head to head

Apache Hadoop vs DuckDB

Apache Hadoop logo

Apache Hadoop

Databases

The original open source framework for distributed storage and batch processing on commodity servers, now largely a legacy platform.

From
Free
Free plan
Yes
DuckDB logo

DuckDB

Databases

MIT-licensed analytical SQL database that runs inside your process, with no server, no dependencies and one writer at a time.

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Apache Hadoop lists HDFS federation and high availability; only DuckDB lists in-process execution.

How do Apache Hadoop and DuckDB differ?

Apache Hadoop and DuckDB differ on platforms and year founded (2006 against 2019). Only the attributes on which Apache Hadoop and DuckDB actually diverge.

Attributes where Apache Hadoop and DuckDB differ
AttributeApache HadoopDuckDB
PlatformsWebLinux, macOS, Windows, Web
Founded20062019

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes), category (Databases).

Which features does each one have?

They share no listed features; 8 appear only for Apache Hadoop and 10 only for DuckDB. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Apache Hadoop

  • HDFS
  • YARN
  • MapReduce
  • HDFS federation and high availability
  • Kerberos security
  • Rack awareness
  • S3A and object store connectors
  • Ecosystem compatibility

Only in DuckDB

  • In-process execution
  • Vectorised columnar engine
  • Direct file querying
  • Zero dependencies
  • Larger-than-memory queries
  • MIT licence
  • Postgres-flavoured SQL
  • Extension ecosystem

What is each one used for?

The jobs each tool is most often brought in to do.

Apache Hadoop

  • Operating an existing multi-petabyte on-premises estate where data residency or egress costs rule out moving to cloud object storagenot DuckDB
  • Running Spark or Flink under YARN on hardware you already own, using HDFS as the storage layernot DuckDB
  • Keeping long-lived regulated archives on infrastructure entirely within your own data centres and legal jurisdictionnot DuckDB
  • Maintaining legacy Hive and MapReduce workloads during a staged migration to a lakehouse or cloud platformnot DuckDB

DuckDB

  • Transformation steps in a data pipeline that would otherwise need Spark, replaced by SQL over Parquet in a single processnot Apache Hadoop
  • Analytical queries embedded in an application or a dashboard where shipping a database server alongside it is not acceptablenot Apache Hadoop
  • Local exploration of files that are too large for a pandas dataframe but far too small to justify a warehousenot Apache Hadoop
  • Continuous integration and testing of analytical SQL, where a real engine can run in the test process without provisioning anythingnot Apache Hadoop

Where do Apache Hadoop and DuckDB fall short?

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Apache Hadoop

  • The free vendor distributions no longer exist: Cloudera's CDH and Hortonworks' HDP have reached end of support and the successor CDP is subscription-only, so running Hadoop without paying now means assembling, testing and security-patching Apache releases yourself
  • HDFS couples storage to compute, so adding capacity means buying whole nodes with CPU and memory you may not need, and the entire industry moved to object storage precisely because it lets the two be bought separately
  • The NameNode holds all filesystem metadata in memory, so a cluster with tens of millions of small files exhausts heap long before it exhausts disk, and the remedy is a file compaction job that somebody has to write, schedule and own indefinitely
  • Operating it is a distinct specialism covering Kerberos, YARN queue tuning, JVM garbage collection and the compatibility matrix between Hive, HBase, Ranger, Oozie and the core, and an upgrade touches all of them at once rather than one at a time
  • MapReduce is maintained for compatibility rather than actively developed, and new work goes to Spark or Flink, so a job written against MapReduce today is written against an API that will not gain anything further
  • Hiring is against you: the talent pool has moved to cloud data platforms over the past decade, so a Hadoop estate increasingly depends on a small number of individuals, which makes it a succession risk before it is a technical one

DuckDB

  • A database file accepts one read-write process at a time; other processes must open it read-only and will not see subsequent writes, so DuckDB cannot be the shared database behind several services
  • There is no network protocol, authentication or user management, so exposing it to remote clients means writing and securing your own service around it
  • It is built for scans and aggregations, not for many small transactions, so a workload of high-frequency single-row inserts and updates performs badly compared with SQLite or Postgres
  • Storage files are backwards compatible but not forwards compatible, so a file written by a newer version cannot be read by an older one and every consumer of a shared file must be upgraded together
  • Query memory settings matter: some operations still need to hold significant state, so an under-configured memory limit turns a large join or a high-cardinality aggregation into a spill-heavy query or an out-of-memory failure rather than a slow success

How much do Apache Hadoop and DuckDB cost?

Apache Hadoop is free to use; DuckDB is free to use. Plan by plan below, from each vendor's own pricing page.

Apache Hadoop

Free
  • Open source (self-hosted)Free

DuckDB

Free
  • Open source (MIT licence)Free

Which should you pick?

Choose Apache Hadoop if

  • You need hdfs.
  • You want to start without paying.
  • You also want yarn.

Choose DuckDB if

  • You need in-process execution.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Web.
  • You also want vectorised columnar engine.

Questions people ask

Is Apache Hadoop or DuckDB better?
It depends on the job. Apache Hadoop fits operating an existing multi-petabyte on-premises estate where data residency or egress costs rule out moving to cloud object storage; DuckDB fits transformation steps in a data pipeline that would otherwise need Spark, replaced by SQL over Parquet in a single process. Apache Hadoop starts at Free and DuckDB at Free.
Which is cheaper, Apache Hadoop or DuckDB?
Apache Hadoop starts at Free and DuckDB at Free.
Does Apache Hadoop or DuckDB run on more platforms?
Apache Hadoop runs on Web. DuckDB runs on Linux, macOS, Windows, Web.
Can I use Apache Hadoop for free?
Both have a free tier, so you can try either at no cost before committing.
What is Apache Hadoop best used for?
Apache Hadoop is most often used for operating an existing multi-petabyte on-premises estate where data residency or egress costs rule out moving to cloud object storage, running spark or flink under yarn on hardware you already own, using hdfs as the storage layer, keeping long-lived regulated archives on infrastructure entirely within your own data centres and legal jurisdiction, maintaining legacy hive and mapreduce workloads during a staged migration to a lakehouse or cloud platform. Of those, operating an existing multi-petabyte on-premises estate where data residency or egress costs rule out moving to cloud object storage and running spark or flink under yarn on hardware you already own, using hdfs as the storage layer are not what DuckDB is typically brought in for.
What can Apache Hadoop do that DuckDB cannot?
Apache Hadoop covers HDFS, YARN, MapReduce, HDFS federation and high availability. DuckDB covers In-process execution, Vectorised columnar engine, Direct file querying, Zero dependencies.

Answered from the vendors’ own pages

Apache Hadoop: Is Hadoop dead?

No, but it is legacy. Large on-premises HDFS estates still run and are still supported, and Spark and Flink still run on YARN. What has ended is Hadoop as a default choice for new platforms, which now start on object storage.

DuckDB: Can multiple applications share one DuckDB database?

Not for writing. One process holds the database read-write; others may attach read-only and will not see later writes. Shared multi-writer access needs a different database or a table format with a catalogue.

Apache Hadoop: Can I still get a free packaged distribution?

Not a maintained one. CDH and HDP reached end of support and Cloudera's CDP is a paid subscription. The remaining free route is building and patching Apache releases yourself, which is a real engineering commitment.

DuckDB: Is it a replacement for a data warehouse?

For single-node analytical workloads up to a few hundred gigabytes it very often is. It is not a replacement when many concurrent users need a shared, governed, always-on service.

Apache Hadoop: Do I need Hadoop to run Spark?

No. Spark runs standalone, on Kubernetes and on managed cloud services, and reads object storage directly. Many Spark deployments include Hadoop client libraries for the filesystem connectors without running a Hadoop cluster at all.

DuckDB: Do I have to load data into it?

No. It queries Parquet, CSV, JSON and Arrow in place, including on object storage. Its own storage format is optional and mainly useful when you want indexes, constraints and faster repeated access.

Apache Hadoop: What replaced HDFS?

Object storage, typically S3 or a compatible system, combined with an open table format such as Apache Iceberg or Delta Lake. Apache Ozone exists as an object store within the Hadoop ecosystem for organisations staying on-premises.

DuckDB: What is MotherDuck's relationship to it?

MotherDuck is a separate company offering a managed and hybrid service built on the DuckDB engine. DuckDB itself remains MIT-licensed and independent of it, with the IP held by the DuckDB Foundation.

Apache Hadoop: Is it cheaper than the cloud?

It can be at multi-petabyte scale with steady, predictable utilisation, particularly where egress charges would be large. Include the staffing cost honestly, because the specialist operators a Hadoop cluster requires are scarce and therefore expensive.

DuckDB: Is it suitable for OLTP?

No. It is designed for analytical scans. For transactional workloads with frequent small writes, SQLite or Postgres is the right tool.

Share

Related pages

Other head to heads