Ozone object store: how Cloudera stores data without HDFS

Apache Ozone as the storage layer under Cloudera on premises: why HDFS ran out of road, the Ozone Manager, Storage Container Manager and DataNodes, volumes, buckets and keys, FSO and OBS layouts, S3 and ofs access, erasure coding, snapshots, quotas, Ranger security, HDFS migration and sizing.

Updated CompTech Team

Every Hadoop cluster that has run for a few years has the same storage problem. The NameNode keeps the whole file namespace in memory, so a cluster that collects a few hundred million small files, which is what IoT feeds, log shipping and partitioned Hive tables produce, hits a memory ceiling long before the disks fill. The fix was always more RAM, bigger files, or a second cluster. None of that helped with the other request that kept arriving: an S3 API, because the ML notebooks, the backup software and the vendors' connectors all speak S3 and none of them speak HDFS.

Apache Ozone is Cloudera's answer, and in Cloudera Base on premises 7.3.2 it is the storage layer that the containerised Data Services, the Iceberg lakehouse and Cloudera AI are built to use. It keeps the Hadoop-compatible file interface so that Hive, Spark and Impala work unchanged, adds a native S3 API, and replaces the single in-memory namespace with a design that Cloudera says scales past one hundred billion objects in one cluster.

This article explains how Ozone is put together, how its namespace and bucket layouts work, the access paths, how it keeps data durable, what security and quotas look like, what moving from HDFS involves, and how to size a cluster. It is an overview to read before a design workshop, not a lab.

Why HDFS ran out of road

HDFS was designed in 2006 for a few thousand large files per node, replicated three times, read by MapReduce. Four of its limits became design constraints for everyone who ran it at scale:

  • The namespace lives in one JVM. Every file, directory and block occupies NameNode heap, so the practical ceiling sits in the low hundreds of millions of files.
  • Blocks are the replication unit. The NameNode tracks every replica, so denser DataNodes mean a busier master. Cloudera caps an HDFS DataNode at about 100 TB for that reason.
  • Small files are expensive. A million 10 KB files cost the same metadata as a million 1 GB files, and streaming ingestion produces exactly those files.
  • There is no object API. Backup products, vector databases and model registries expect an S3 endpoint with access keys, buckets and multipart uploads.

Ozone was built inside the Hadoop community to remove those limits while keeping the clients that already work.

The components

Ozone splits the two jobs the NameNode did alone, naming things and placing data, into two services, and adds a stateless gateway and a monitoring service around them.

Ozone components and the two access paths. On the left, two groups of clients: Hadoop-compatible clients such as Hive, Spark, Impala and Cloudera Data Engineering using the ofs scheme, and S3 clients such as Cloudera AI, backup tools and application SDKs using the S3 API. The S3 clients pass through stateless S3 Gateway instances behind a load balancer; the ofs clients talk to the Ozone Manager directly. In the middle, the Ozone Manager, three nodes in a Ratis ring with RocksDB, owns the namespace of volumes, buckets and keys, and the Storage Container Manager, also three nodes, owns containers, pipelines and placement. On the right, DataNodes hold 5 GB containers of 4 MB chunks, and Recon takes an offline copy of the metadata for monitoring. Mint arrows carry control and metadata; an orange pipe shows data bytes going straight from the clients to the DataNodes, never through the Ozone Manager.
Component What it owns How it stays available
Ozone Manager (OM) The namespace: volumes, buckets, keys, and each key's blocks Three nodes replicate state with Apache Ratis (Raft) into RocksDB on NVMe. No ZooKeeper, no JournalNodes
Storage Container Manager (SCM) Containers, pipelines and placement: where a new container goes, what to re-replicate Three nodes, also Ratis and RocksDB. Not on the data path
DataNodes The bytes, as containers (5 GB by default) of 4 MB chunk files, each with its own RocksDB Heartbeats and container reports to SCM; each write pipeline is a Ratis quorum of three
S3 Gateway A stateless translator from the AWS S3 API to Ozone RPCs, including multipart uploads Several behind a load balancer, which stays off the data path
Recon Monitoring: an asynchronous copy of OM and SCM metadata, container health, a heatmap of hot keys One instance; it trails the OM by design

The idea that makes the split work is the storage container. HDFS replicated individual blocks and tracked each replica at the master. Ozone groups many blocks into a container, replicates the container as a unit, and once a container is closed it never changes again. SCM therefore tracks thousands of containers rather than billions of blocks, which is why a DataNode can hold 400 TB, four times Cloudera's HDFS guidance, and why Cloudera quotes a design target of over 100 billion objects.

A write asks the OM for a key, the OM gets a block in an open pipeline from SCM and returns the DataNodes, and the client streams 4 MB chunks to the pipeline leader, which replicates them through Ratis. A read gets block locations and a permission check from the OM and then goes straight to a DataNode.

The namespace: volumes, buckets and keys

Ozone's namespace has three levels, and how to use them is the first design decision on any project.

  • A volume is like an account or a tenant: a business unit, a project, a source cluster. Only an administrator can create one, and every volume has an owner with default rights over everything inside it. Cloudera suggests keeping volumes to a handful, in the range of one to twenty.
  • A bucket sits inside a volume, like an S3 bucket. Ordinary users can create them if Ranger allows, buckets cannot nest, and Cloudera suggests up to about a thousand per volume.
  • A key is an object or file inside a bucket, mapped to one or more blocks. A single bucket can hold hundreds of millions of keys.

The S3 API has no concept of volumes, so everything S3 clients see lives under a volume called s3v; a bucket created elsewhere becomes visible to S3 through a link bucket there.

FSO and OBS bucket layouts

Each bucket has a layout, chosen at creation and fixed afterwards, and it decides what the bucket is good at.

Two decisions per bucket. The top half shows the namespace: a volume, owned by an administrator with quotas, holding buckets, each bucket holding keys. Two buckets are compared: a FILE_SYSTEM_OPTIMIZED bucket, drawn as a directory tree, reachable over ofs and S3, with atomic renames for Hive, Spark and Iceberg; and an OBJECT_STORE bucket, drawn as flat keys with full paths, reachable over S3 only, for backups and model files. Quotas and per-bucket snapshots sit alongside. The bottom half compares durability: Ratis replication writes three full copies of each 5 GB container for 200 percent overhead; erasure coding with six data and three parity blocks spreads one container across nine DataNodes for about 50 percent overhead; and the Storage Optimizer, a Technical Preview in 7.3.2, converts cold replicated data to erasure coding in the background.
Layout Namespace model Reachable over Use it for
FILE_SYSTEM_OPTIMIZED (FSO) A real directory tree. Renaming or deleting a directory is one atomic metadata operation ofs://, S3, and the deprecated o3fs:// Hive and Impala warehouses, Spark and Iceberg tables, anything that writes to a staging directory and renames it into place
OBJECT_STORE (OBS) A flat key space in which each key carries its full path, exactly like S3 S3 only; ofs:// cannot open it Backups, model artefacts, images, applications written against S3
LEGACY The pre-7.1.8 format, kept so upgraded clusters keep working Both Nothing new

The reason this matters is renames. A Spark or Hive job writes a partition into a staging directory and renames it at the end. In an FSO bucket that rename is a single pointer change. In an OBS bucket, as on S3 itself, it means renaming every key under the prefix one by one, which is slow and can fail halfway. So analytics engines get FSO buckets, S3-native applications that never rename get OBS buckets, and since FSO is also readable over S3 it is the default when in doubt.

Access paths

A cluster normally uses most of Ozone's interfaces at once.

  • ofs://<service-id>/volume/bucket/path is the Hadoop-compatible file system that Hive, Spark, Impala, YARN and Cloudera Data Engineering use. The service ID names the OM quorum, as an HDFS nameservice did, so a path such as /user/finance/ledger becomes ofs://ozone1/user/finance/ledger and nothing else in the job changes. ofs can create volumes and buckets on the way if Ranger permits.
  • The S3 API through the S3 Gateway is what Cloudera AI uses for model storage and what backup tools and application SDKs use. Access keys are issued per Kerberos principal, and in 7.3.2 SP2 the S3 Security Token Service adds an AWS-compatible AssumeRole endpoint that issues temporary credentials, valid for 15 minutes to 12 hours and one hour by default. Ranger decides who may assume which role, and an optional inline session policy narrows the permissions further, so a short-lived pipeline job or notebook gets S3 credentials without a keytab.
  • The older o3fs:// scheme still works but is deprecated; the ozone sh shell, the Java client and HttpFS serve administrators and tools that only speak HTTP.

Encrypted buckets are visible on every path. Ozone supports transparent data encryption per bucket, using the same Key Management Server as HDFS, and an encrypted bucket under s3v, or a link to one, is readable through the S3 Gateway with the data decrypted server-side. Ozone does not implement S3's own SSE or client-side encryption headers.

Durability: replication, erasure coding and the Storage Optimizer

Ratis replication writes three copies of every container across three DataNodes, chosen rack-aware by default. It costs 200 percent overhead, three bytes on disk for every byte stored, and it is the right choice for hot data and for anything written in small pieces, because the write pipeline acknowledges when a majority has the data.

Erasure coding splits a container into data blocks plus parity blocks and spreads them across more nodes. Cloudera's documented example is six data plus three parity, written RS(6,3), which survives the loss of any three blocks with about 50 percent overhead: six blocks of data use nine blocks of disk rather than eighteen. The replication type can be set cluster-wide, per bucket or per key, and Cloudera recommends setting it on the bucket so that every key inherits it. Two caveats: RS(6,3) needs at least nine DataNodes, and Ozone does not use the Intel ISA-L native library, so encoding runs in Java.

The Cloudera Storage Optimizer, new in 7.3.2 and labelled Technical Preview in the release summary, closes the gap between the two. It watches for data that has gone cold and converts it from three-way replication to erasure coding in the background. Cloudera's figure is 45 to 60 percent less raw storage for the converted data, rounded to "up to 50 percent" in the release summary. For an organisation that keeps years of transaction history or sensor data for regulatory reasons, this is the feature that changes the hardware bill.

Also in 7.3.2 is storage container reconciliation, which repairs replicas that have diverged, and Recon gains metrics for missing, under-, over- and mis-replicated containers, so an administrator can see the health of every container and have Ozone fix it.

Snapshots and quotas

Ozone snapshots are taken per bucket, instantly, at the metadata level: because closed containers never change, a snapshot is a frozen view of the OM's key table, and the blocks it references stay on disk until no snapshot or live key points at them. Snapshot diff lists the keys that changed between two snapshots, computed asynchronously and returned in pages, which is the foundation for incremental copies to a disaster recovery site. The per-bucket limit rose from 1,000 to 10,000 snapshots in 7.3.2, so hourly snapshots with long retention are realistic. Snapshot rename exists upstream but Cloudera does not support it.

Quotas are set by administrators on volumes and buckets, in two kinds. A storage space quota caps bytes, on the volume as the total of its buckets and on the bucket including everything nested inside. A namespace quota caps counts: how many buckets a volume may hold, and how many keys, files and directories a bucket may hold. They are how one cluster serves several departments without one team's log retention eating another's warehouse.

Security

Ozone inherits the Base cluster's security model rather than inventing one.

  • Authentication is Kerberos, with block and delegation tokens on the data path, and S3 access keys or STS session tokens for S3 clients, each mapped back to a Kerberos principal.
  • Authorisation is Apache Ranger. The Ozone plug-in defines policies at volume, bucket and key level with operations similar to HDFS, and Cloudera recommends it over Ozone's native ACLs. Two details catch people: a user who needs a bucket also needs a separate policy granting read on its volume, and by default only the om service user can list all volumes at the root of ofs://. Bucket ownership does not exist; the volume owner is the unit of ownership.
  • Encryption at rest is per bucket through transparent data encryption and the Ranger KMS. The om service user needs Get Metadata and Generate EEK rights on the key, and writers need Decrypt EEK.
  • Encryption in transit is TLS on every endpoint, and 7.3.2 replaces DIGEST-MD5 with a DIGEST-SHA SASL mechanism so the cluster can run in FIPS mode.
  • Audit flows to Ranger like every other Cloudera service.

Moving from HDFS to Ozone

Cloudera's migration guide is honest about one thing that surprises people: even though Ozone uses no HDFS code at run time, it still needs an HDFS service in the cluster, or the newer Core Configuration service, because Cloudera Manager distributes Ozone client configuration to Hive, Spark and YARN through the same mechanism it uses for HDFS. A cluster therefore rarely goes to zero HDFS; it goes to a small HDFS that holds configuration while Ozone holds the data.

The migration itself is a mapping exercise followed by a copy:

  1. Decide the mapping. The common pattern maps the HDFS /user tree to a volume called user with one bucket per second-level directory, so every existing path works by adding the ofs://<service-id> prefix. An HDFS encryption zone must not be split across buckets, because Ozone encrypts per bucket.
  2. Create the volumes, buckets and Ranger policies, including KMS policies for encrypted buckets.
  3. Copy with DistCp from the destination cluster, with checksum settings that let HDFS and Ozone compare file-level CRCs. The guide lists DistCp's append and snapshot-diff flags as unsupported for Ozone targets, so plan full copies per directory.
  4. Validate, then repoint. Hive table locations, Spark job paths and Data Warehouse database catalogs move to ofs:// paths; Data Services 1.5.5 SP3 automates the Ozone integration for Hive, Impala and Trino.
  5. Clean up the HDFS source once the dependent services run against Ozone.

Organisations already on a different object store, such as NetApp StorageGRID, Dell ObjectScale or an ONTAP S3 bucket, do not need Ozone to run Data Services: Impala and Cloudera AI are certified on S3-compatible on-premises stores. Ozone is the choice when the storage should be part of the Cloudera cluster rather than a separate appliance. Either way, the Data Services treat it as their durable store: Iceberg tables from Data Warehouse, Data Engineering and Cloudera AI are GA on Ozone in FSO buckets (see Iceberg lakehouse), Cloudera AI Inference pulls model artefacts from it over S3, and Replication Manager replicates its buckets between sites (see Observability and DR).

Sizing and planning

Cloudera's hardware guidance for 7.3.2 is specific enough to plan a tender from.

Role Cloudera's reference configuration
Master nodes (OM, SCM, Recon), three of them 2 x 20-core CPUs, 256 GB RAM with 64 GB per service, 2 x 480 GB SSD for the OS, 2 x 4 TB NVMe in RAID 1 for metadata, 2 x 25 Gbps
DataNodes, storage only 2 x 12-core CPUs, about 31 GB heap for the DataNode, 24 x 16 TB data disks as JBOD, an NVMe pair for container metadata
Minimum cluster Three master nodes and nine DataNodes, the smallest layout that supports RS(6,3) with full high availability

Three rules sit behind the table. Metadata for the OM, SCM and the DataNodes' RocksDB must be on mirrored NVMe or SSD, because the Ratis logs and the key tables are latency-bound. Data disks must not be shared with HDFS or anything else. And JVM heaps should stay at or below 31 GB or go above 47 GB, never in between, because the JVM loses compressed object pointers past 31 GB and the memory in that range is wasted.

Capacity planning starts from the durability choice. Cloudera's own example for RS(6,3) with 16 TB disks:

Logical capacity DataNodes Raw disk
2 PB 9 3.5 PB
8 PB 31 12 PB
16 PB 64 24 PB

Under three-way replication the same logical capacity needs twice the raw disk of the erasure-coded figure, which is the arithmetic behind the Storage Optimizer.

Heap sizing follows published formulas: the OM starts from 8 GB plus 2 GB for listing and grows with peak operation rates, SCM from 6 GB plus 1.4 KB per container, and a DataNode from 4 GB plus 150 MB per active pipeline. All three are driven by Prometheus metrics that Cloudera Manager already collects.

What to decide

An architect planning Ozone for a bank, a government data centre or a large enterprise in Bangladesh faces a short list of decisions, and most of them are hard to reverse.

  • Ozone or an external object store. Ozone makes the storage part of the Cloudera estate, covered by Ranger and Cloudera Manager, on servers the organisation owns inside the country. An external S3-compatible array is simpler to share with non-Cloudera workloads. Mixing them is common.
  • Volume and bucket design. Volumes map to tenants and carry ownership and quotas; buckets map to datasets and carry layout and encryption. Decide the scheme before the first migration, because a bucket's layout cannot change afterwards.
  • FSO everywhere except pure S3 workloads. Analytics tables need atomic renames. Give OBS buckets only to applications written for S3 that never rename.
  • Replication for hot data, erasure coding for the rest. Start archival buckets on RS(6,3) if the cluster has nine or more DataNodes, and plan to adopt the Storage Optimizer once it leaves Technical Preview rather than building a manual tiering process.
  • Keep a small HDFS. The configuration dependency means HDFS or the Core Configuration service stays, so size a minimal HDFS rather than planning its removal.
  • Nine DataNodes is the floor. Smaller pilots work with three-way replication, but the economics of Ozone are the economics of erasure coding on dense nodes.
  • Credentials for S3 clients. Prefer the SP2 Security Token Service with Ranger roles over long-lived access keys, especially for notebooks and pipeline jobs that come and go.

Further reading

In this series