Migrate from HDFS to Ozone in waves. Choose the bucket layout, copy each dataset with distcp, validate it, move readers and writers, and keep the HDFS copy until checks pass. Cloudera documents the copy command, the checksum options that depend on your source version, and the options Ozone does not support.
The process in seven steps
Cloudera's migration guide lays out the same shape. Use it as the spine of your plan:
- Verify the prerequisites: create the destination Ozone cluster and confirm it can pull data from your HDFS source.
- Prepare Ozone for ingestion: volumes, buckets, layout and quotas.
- Create Ranger policies. If you use an encrypted bucket, add policies for the key admin user so reads from it work.
- Migrate the data with distcp.
- Validate the data on the source and the destination.
- Clean up the HDFS source once validation passes.
- Optionally configure Hive or Spark to use the migrated data.
Pre-checks
- Profile HDFS: file counts, size distribution and which datasets strain the name service.
- Confirm your Cloudera Runtime release supports the Ozone features you need.
- List the applications that read or write each dataset, and any that use appends or concatenation.
- Check Ranger policies for Ozone and plan the same rules on the new buckets.
- Size Ozone for the data you will move plus growth.
- Check that the user running distcp can run MapReduce jobs on YARN. Cloudera notes you may need to adjust the YARN settings that block system users and low user IDs from running jobs.
Bucket layouts
| Layout | What it is | Use for |
|---|---|---|
| File system optimized (FSO) | Hierarchical, HDFS-like, with S3 access | Hive, Spark and Impala data with directories and renames |
| Object store (OBS) | Flat key-value, like Amazon S3 | S3-style applications that do not rename directories |
| Legacy | Existing buckets kept through upgrades | Keep as is, do not create new |
# Create a volume and an FSO bucket
ozone sh volume create /data
ozone sh bucket create --layout FILE_SYSTEM_OPTIMIZED /data/warehouseThe default layout varies by release and can be set in ozone-site.xml, so set it on purpose. Cloudera's copy guide says FSO became the default from OZONE-Parcel 718.2.0. It also explains why FSO matters for jobs that write to a temp directory and rename it: FSO renames are atomic, while on an OBS bucket a directory rename is many client calls and costs far more.
Data copy
Use distcp from the HDFS path to an ofs path, and run it from the destination cluster. Which checksum options you need depends on where the source came from. Cloudera documents:
| Option | When it applies |
|---|---|
| -direct | Required when the target is an object store (OBS) bucket |
| -Ddfs.checksum.combine.mode=COMPOSITE_CRC with -Dozone.client.checksum.type=CRC32C | Lets distcp compare checksums between the two file systems. Cloudera lists it for CDH 6, HDP 3 and Cloudera-to-Ozone copies |
| -skipcrccheck | Skips the checksum comparison. Cloudera lists it for CDH 5 and HDP 2 sources |
| -Dozone.om.kerberos.principal.pattern=* | Required when Kerberos is on for the Ozone cluster |
hadoop distcp \
-Ddfs.checksum.combine.mode=COMPOSITE_CRC \
-Dozone.client.checksum.type=CRC32C \
-Dozone.om.kerberos.principal.pattern=* \
hdfs://<nameservice>/data/warehouse/orders \
ofs://<ozone.service.id>/data/warehouse/ordersAdd -direct if the target is an OBS bucket, and use -skipcrccheck instead of the checksum options if your source is one of the older versions above. Ozone does not support file appends or concatenation, so the append, -diff, -rdiff and -blocksperchunk options do not apply. For very large file counts, Cloudera suggests building a copy listing file with hdfs dfs -ls and submitting it to distcp.
Run the copy on one dataset first and check file counts and sizes against the source.
Validation checks
| Check | How | Pass when |
|---|---|---|
| File count | Count files on the HDFS path and the Ozone path | Counts match |
| Size | Compare total bytes | Totals match |
| Content | Checksum comparison where the options allow it, or a row count and sample hash in the query engine | Results match |
| Permissions | Query as a user from each role against the new bucket | Same access as before |
| Jobs | Run the dataset's key jobs against the Ozone path | Same output, similar runtime |
Cut-over
- Copy the dataset and compare file counts and sizes.
- Run the dataset's key queries or jobs against the Ozone path and compare results.
- Move readers first, then writers, one application at a time.
- For tables in the Hive Metastore, repoint the location in a controlled change, and test the table before and after.
- Keep the HDFS copy until a full cycle of jobs has passed.
- Remove the HDFS copy only after sign-off.
Data keeps changing during a long copy. Plan a final delta copy at cut-over, and pause writers while it runs.
What goes wrong
| Problem | Likely cause | Fix |
|---|---|---|
| Copy fails on checksum | Source version needs a different checksum option | Pick the option set from the table above |
| Slow jobs after the move | Job writes to a temp directory and renames it on an OBS bucket | Use an FSO bucket |
| Permission denied | Ranger policies not copied to the new buckets | Recreate policies before the copy |
| Copy cannot start | The user cannot run MapReduce jobs on YARN | Adjust the user settings Cloudera names |
For why you would move, see Ozone vs HDFS. The worked example is a small-files workload on Ozone, and the service page is Apache Ozone on Cloudera. Iceberg tables on the new storage still need regular maintenance, and HBase data has its own path, covered in Apache HBase on Cloudera.
A first engagement
Duczer East offers a migration plan: we profile your datasets, choose layouts, test the copy command for your source version on one dataset and hand back a wave plan with validation checks and a rollback.



