Release Landscape
Apache Hadoop releases come as lines, for example 3.4.x and 3.5.x. The 3.5.0 release appeared in April 2026 and the 3.4 line still receives patch releases. Choose a version supported by all the other tools you run (Hive, Spark, HBase, Kafka clients, Ranger). Check each project's compatibility notes.
| Upgrade type | Example | Risk |
|---|---|---|
| Patch (maintenance) | 3.4.1 -> 3.4.3 | Low |
| Minor | 3.4.x -> 3.5.0 | Medium |
| Major | 2.x -> 3.x | High, plan carefully |
Planning Checklist
- Read the release notes, incompatible changes and upgrade notes of every version between yours and the target
- Check Java version, OS, library and third-party compatibility
- Build a test cluster with a copy of real configs and sample data
- Upgrade the test cluster, run your real jobs, benchmark
- Create a written plan: order, timing, who, communication, rollback
- Take backups: fsimage, metastore DB, configs, Ranger DB
- Pick a low traffic window and notify users
- Execute, verify, finalize
HDFS Rolling Upgrade (HA Cluster)
A rolling upgrade updates daemons one at a time with the cluster running. It requires NameNode HA.
finalize if your policy allows. Finalizing frees the old block files kept on DataNodes, so capacity usage temporarily goes up during the upgrade window.
Rollback and Downgrade
| Situation | Option |
|---|---|
| Problem found before finalize | -rollingUpgrade downgrade (keeps data created after) or full rollback to the saved image (loses changes since prepare) |
| After finalize | Restore from backup. Plan so you do not need this |
YARN and Others
- ResourceManager: upgrade standby, failover, upgrade the other. Work-preserving recovery keeps jobs running
- NodeManagers: restart in batches with
yarn rmadmin -refreshNodes -ggraceful drain, or let work-preserving NM restart keep containers - Clients, edge nodes, Spark/Hive jars: align versions of client libraries last
- Hive, HBase, Kafka, ZooKeeper: follow their own rolling procedures. Take metastore DB backup and run
schematool -upgradeSchema
Express Upgrade (With Downtime)
For non-HA clusters or major changes, stop the cluster, upgrade software everywhere, start the NameNode with -upgrade, wait for DataNodes to upgrade their storage, validate and then hdfs dfsadmin -finalizeUpgrade.
Validation After Upgrade
hdfs fsck /is healthy, no new missing blocks- All daemons on the expected version:
hadoop version, UI footer,hdfs dfsadmin -reportversion fields - Run TestDFSIO and the standard sample jobs
- Run a set of real pipelines end to end
- Compare performance and error rates with the baseline
- Check security: Kerberos login, Ranger enforcement, TLS
Conclusion
Plan upgrades from release notes and compatibility, test on a lab, back up, then upgrade rolling in the right order with prepare and finalize, keep rollback until you are sure, and validate with real workloads.

