Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideCloudera / Data Services & AI6 min read

Ozone small files runbook: symptoms, metadata load and fixes

Symptoms, metadata load, fixes and monitoring

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: Private AI & Data Architecture
On this page
  1. Symptoms
  2. Metadata load
  3. Fixes
  4. Prevention
  5. Monitoring

Ozone handles far more small files than HDFS, but it does not make them free. Every key is a metadata entry held by the Ozone Manager, so millions of tiny files still raise memory use, slow listings and lengthen recovery. Diagnose first by counting files by size, then fix the cause: write fewer, larger files, compact existing ones, choose the right bucket layout and watch the metadata service.

Symptoms

Small-file trouble rarely shows up as an error. It shows up as slow behaviour that gets worse as the key count grows.

SymptomLikely causeFirst check
Directory or prefix listings take longer each monthVery large number of keys under one pathCount keys under the slow path
Queries spend most of their time planning or opening filesThousands of tiny files per table or partitionFiles per partition and average file size
The Ozone Manager uses more memory or restarts slowlyMetadata growth from key countKey count and process memory trend
Deletes and renames are slow on a large treeBucket layout mismatch or very deep treesBucket layout and operation type
Jobs run many short tasksOne task per fileTask count against input size
Replication or recovery takes longer than plannedLarge numbers of objects to moveObject count, not only terabytes

Compare against your baseline. A number alone does not tell you much, but a trend does, so record key counts and average file size monthly. If you came from HDFS because of small files, read Ozone vs HDFS and the scenario a small-files workload first.

Metadata load

Ozone separates metadata from data. The Ozone Manager holds the namespace, and the Storage Container Manager tracks containers, as the architecture overview explains. Small objects are cheap on the data side, because they pack into containers. The cost sits in the metadata: one entry per key, whatever its size.

Three practical points follow. Fast storage matters, and Cloudera advises low-latency media such as NVMe or SSD for metadata and DataNode volumes. Memory matters, so size the Ozone Manager for your key count and growth, not only for today's count. And layout matters, because directory operations behave differently on file system optimized and object store buckets.

A quick profile

  1. Count keys per bucket and per top-level path.
  2. Bucket them by size: under 1 MB, 1 to 16 MB, 16 to 128 MB, over 128 MB.
  3. List the ten tables or prefixes with the most files, and the owner of each.
  4. Note which files are written by streaming jobs, which tend to create many small files.
  5. Record the share of keys that are older than your retention rule.

Most estates find that a few producers create most of the small files. Fix those first.

Fixes

Treat the cause, not the symptom. Commands and settings vary by release, so check your documentation.

FixWhat it doesCost or risk
Write larger files at the sourceSet batch sizes, partitioning and commit intervals so jobs write fewer, larger filesNeeds code or job changes, and is the cheapest long-term fix
Compact existing dataMerge small files in each partition into target-size filesCompute cost, and a window with no concurrent writers or a table format that handles it
Use a table format that compactsOpen table formats offer compaction; see Iceberg table maintenance and compactionNeeds scheduling and monitoring
Choose the right bucket layoutUse the file system optimized layout for directory-heavy workloads, as described in Ozone vs HDFSLayout is chosen at bucket creation
Reduce partition depthAvoid partitioning by columns with too many distinct valuesQuery design change
Delete what you do not needApply retention to old and temporary filesNeeds owner sign-off
Scale and tune the metadata serviceMore memory or faster storage for the Ozone ManagerHardware and a restart plan

Do not reach for erasure coding to solve a small-file problem. It changes how data is stored, not how many keys exist, and files smaller than a stripe gain less from it. See sizing and erasure coding.

Prevention

The cheapest runbook is the one you rarely open. Write down a standard for producers, so small files do not come back after you fix them:

  • A target file size for each table class, agreed with the owners.
  • Commit intervals for streaming jobs that balance freshness and file count.
  • A compaction schedule for each table, with an owner and a failure alert.
  • A review of any new job that writes more than a set number of files a day.
  • A retention rule for temporary and staging paths, enforced by a job and not by memory.

Add the standard to your onboarding for new data teams, and check it in the quarterly platform review.

Monitoring

Set up checks before you need them. Collect these from the Ozone Manager and the cluster's monitoring tools, and review them monthly:

MeasureWhyAlert when
Total keys and growth rateThe main driver of metadata loadGrowth is faster than your sizing plan
Average file size per top tableShows producers writing small filesA table drops below its target
Ozone Manager memory and pause timeEarly sign of metadata strainA steady upward trend
Listing and open latency on a sample pathWhat users feelIt exceeds the baseline by a set margin
Compaction job successConfirms the fix still worksA run fails or is skipped

Add a small-file report to the weekly data platform review, owned by one named person. Duczer East runs this kind of profile in a storage fit assessment. If you plan a move, see HDFS to Ozone migration steps.

Frequently asked questions

Does Ozone solve the small-files problem?

It handles small files much better than HDFS, but each key still costs metadata. Millions of tiny files still add memory use and slow listings.

How do I find where small files come from?

Count keys by size band per bucket and path, then list the tables or prefixes with the most files and who writes them.

Should I use erasure coding for small files?

Not as a fix. It changes storage overhead, not key count, and files smaller than a stripe gain less. Test with your own size mix.

What is the best long-term fix?

Write fewer, larger files at the source, and compact what already exists on a schedule.

What should I monitor?

Total keys and growth, average file size per table, Ozone Manager memory, listing latency and compaction job success.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote