Skip to content

Insights Data Engineering

Leaving Hadoop: A Step-by-Step Playbook for Migrating Hive and HDFS to an Iceberg Lakehouse

Hadoop clusters still run critical workloads. This playbook covers assessment, in-place versus rewrite migration to Iceberg, dual running, validation and safe decommissioning.

Hadoop was the foundation of the first big data wave, and many enterprises still run critical workloads on it: Hive tables feeding regulatory reports, Spark jobs on YARN, Oozie workflows nobody wants to touch and petabytes of data on HDFS. In 2026, the pressure to move off these platforms has become hard to ignore. Hardware refresh cycles, licensing changes, scarce skills and, above all, the demand to make historical data usable for AI are pushing teams toward lakehouse architectures built on object storage and open table formats such as Apache Iceberg.

This playbook focuses on the practical path: how to assess a Hadoop estate, choose between in-place conversion and full rewrites, move data and workloads in waves, validate results and decommission safely. It is written for data platform leads and architects who need to plan a migration that keeps the business running throughout.

Why Hadoop Exits Are Accelerating

  • Coupled storage and compute. HDFS ties storage capacity to compute nodes. Growing either means growing both, which is inefficient when AI and analytics workloads need elastic compute over large, slowly growing archives. Object storage, on premises or in the cloud, decouples them.
  • Open table formats closed the feature gap. Iceberg provides ACID transactions, schema and partition evolution, time travel and multi-engine access that Hive tables never offered reliably, making the lakehouse a credible replacement rather than a compromise.
  • Engine diversity. Modern engines such as Spark, Trino, Flink, DuckDB and cloud warehouses can all read Iceberg through shared catalogs, so the migration opens options rather than locking into another stack.
  • Skills and operations. Running and patching a large Hadoop distribution requires specialist skills that are increasingly hard to hire and retain.
  • AI readiness. Data locked in Hive tables with weak metadata and coarse access control is difficult to govern for AI use. Moving to a governed catalog is often a prerequisite for using historical data in machine learning and agent workloads.

Step 1: Assess the Estate Honestly

Most Hadoop clusters have grown organically for a decade. Before choosing tools, build a factual inventory.

  1. Data inventory: list Hive databases and tables with size, file format (Parquet, ORC, Avro, text, sequence files), partitioning scheme, table type (managed or external) and last access time. Usage logs often show that a large share of tables are rarely or never queried.
  2. Workload inventory: catalog Spark, Hive, MapReduce, Pig and Impala jobs, Oozie or Airflow workflows, streaming jobs and their schedules, owners and downstream consumers.
  3. Dependencies: identify BI tools, applications, extracts and APIs that read from Hadoop, and the credentials and network paths they use.
  4. Security model: document Kerberos principals, Ranger or Sentry policies, encryption zones and audit requirements.
  5. Code characteristics: flag HiveQL that relies on custom UDFs, SerDes or behaviors specific to older Hive versions, and MapReduce or Pig code that will need rewriting rather than porting.

The output is a migration backlog with each dataset and workload classified as migrate, rewrite, archive or retire. Retiring and archiving unused assets is usually the cheapest win in the whole program.

Step 2: Design the Target Lakehouse

Decide the target before moving anything. Key decisions include:

  • Storage: cloud object storage, on-premises S3-compatible object storage, or a hybrid. Data gravity, residency rules and cost at your scale all matter.
  • Catalog: an Iceberg REST-compatible catalog (for example, a cloud provider’s catalog, Apache Polaris, Unity Catalog or another option) that will govern access across engines.
  • Engines: which engines replace Hive, Impala and Spark-on-YARN for batch, interactive and streaming workloads.
  • Orchestration: the replacement for Oozie, commonly Apache Airflow or a managed orchestrator.
  • Security: how Ranger policies translate into catalog-level grants, row filters and column masks, and how identities map from Kerberos to your cloud or enterprise identity provider.

Step 3: Choose a Migration Approach per Table

Iceberg offers several ways to bring Hive data across. The Apache Iceberg documentation describes Spark procedures for this purpose, and AWS published an enterprise-scale implementation guide for in-place migration in January 2026.

In-place conversion

In-place approaches create Iceberg metadata over existing data files instead of rewriting them. The snapshot procedure creates a new Iceberg table from a Hive table’s files, useful for testing without touching the source. The migrate procedure converts a Hive table to Iceberg. The add_files procedure registers existing files into an Iceberg table and can also add files that arrive after the initial migration. According to the Iceberg documentation and the AWS guide, in-place migration works for self-describing formats such as Parquet, ORC and Avro, and it avoids large-scale data movement.

The AWS guide highlights important cautions: if files do not follow a Hive-style partition layout, add_files can fail or register incorrect partition metadata, leading to unexpected nulls or incomplete results. It also warns never to delete data or metadata files directly from storage and notes that dropping an Iceberg table can delete the underlying data.

Full rewrite

A full rewrite reads source data and writes new Iceberg tables, typically with Spark. It is slower and more expensive, but it lets you fix problems: convert text or sequence files to Parquet, redesign partitioning (for example, using Iceberg hidden partitioning instead of many small date partitions), compact small files and clean schemas.

How to decide

  • Use in-place conversion for large, well-structured Parquet or ORC tables with Hive-style layout that already perform acceptably.
  • Use a full rewrite for text-based formats, tables with severe small-file problems, poor partitioning or schemas that need cleanup.
  • When data must physically move (for example, from on-premises HDFS to cloud object storage), copy files first with tools such as DistCp and then convert in place, or rewrite during the move.
  • Archive cold tables to cheap storage in an open format and register them only if someone needs them.

Do not migrate what nobody uses. In most Hadoop exits, the fastest route to lower risk and cost is retiring and archiving the long tail before moving a single active table.

Step 4: Run Old and New in Parallel

A big-bang cutover from Hadoop is rarely safe. Plan for a period of dual running.

  1. Start with consumers. Point a query engine at both environments so analysts and BI tools can switch with minimal disruption once tables are validated.
  2. Dual ingest. For active pipelines, write new data to both Hadoop and the lakehouse during the transition, or replicate from Hadoop with incremental add_files or rewrite jobs.
  3. Migrate in waves. Group tables and jobs by domain or consumer so each wave delivers a complete, testable slice of business value.
  4. Freeze changes per wave. Agree a short change freeze on Hadoop-side logic for tables in the active wave to avoid chasing a moving target.

Step 5: Validate Rigorously

Validation is where migrations earn trust. Build it as automated tests that run for every wave.

  • Metadata checks: schema, partition specs and table properties match the design. The AWS guide uses commands such as DESCRIBE FORMATTED and SHOW TBLPROPERTIES to confirm conversions.
  • Row counts per table and partition, compared between Hive and Iceberg.
  • Aggregate checks on key measures and checksums over business keys.
  • Query-result comparisons for the most important reports and jobs, run on both platforms.
  • Performance benchmarks for critical queries under realistic concurrency.
  • Security tests confirming that translated policies grant and deny access exactly as intended.

Step 6: Migrate Workloads and Decommission

Data migration is only half of a Hadoop exit. HiveQL usually ports to Spark SQL or Trino with modest changes; MapReduce and Pig jobs need rewriting; Oozie workflows need rebuilding in the new orchestrator. Treat each job as a small project with tests and an owner.

Decommission only after workloads have run successfully on the new platform for an agreed period, consumers have been repointed and retention requirements are met. Remove access first, keep the cluster read-only for a short safety window, then retire hardware or services. Keep a record of what was migrated, archived and deleted for audit purposes.

Planning the Team, Timeline and Budget

Hadoop exits fail more often from planning gaps than from technical problems. A realistic plan addresses people, sequencing and money explicitly.

Team structure

  • A platform squad builds the target lakehouse: storage, catalog, engines, orchestration, security integration, monitoring and maintenance automation.
  • Migration squads aligned to domains move data and jobs wave by wave, owning validation and consumer cutover for their slice.
  • A small governance cell translates security policies, defines retention and archiving rules, and signs off on access before each wave goes live.
  • Hadoop operators keep the existing cluster stable throughout. Losing them early is a common and costly mistake; plan retention and reskilling for this group.

Sequencing

Order waves to reduce risk and build confidence. Start with a domain that has engaged business owners, mostly Parquet or ORC data and limited legacy code. Leave domains with heavy MapReduce, custom SerDes or strict regulatory reporting for later waves, once tooling, tests and runbooks have matured. Plan each wave with clear entry and exit criteria, and avoid overlapping waves that compete for the same consumers or engineers.

Budget

Model three cost streams. First, the one-time migration effort: engineering time, data transfer, temporary compute for rewrites and validation, and any tooling. Second, the period of dual running, when you pay for both Hadoop and the lakehouse; shortening this period through good sequencing is often the biggest lever on total cost. Third, the steady-state cost of the target platform, including storage, compute, catalog, maintenance jobs and support, compared with the fully loaded cost of the Hadoop estate, including hardware refresh, licenses, data center space and specialist staff. Present the business case on all three, not just the end state.

Choosing Where to Land: Cloud, On-Premises or Hybrid

Not every Hadoop exit ends in a public cloud. Organizations with very large, steadily used datasets, strict data residency rules or existing data center investments sometimes land on on-premises S3-compatible object storage with the same open formats and catalogs. Others choose a hybrid approach, keeping cold archives on premises and running elastic analytics and AI workloads in the cloud. Because Iceberg and REST catalogs work across these environments, the choice can evolve later, which is a meaningful advantage over the original Hadoop lock-in.

Worked Example (Hypothetical)

A hypothetical telecom operator runs a 400-node Hadoop cluster holding several petabytes across roughly 20,000 Hive tables. Usage analysis shows that fewer than a quarter of tables were queried in the last year. The team retires or archives the rest, shrinking the active migration scope dramatically.

The remaining tables split into two groups. Large Parquet tables of network events with clean, Hive-style date partitions are copied to object storage and converted in place with migrate and add_files. Older customer and billing tables stored as delimited text with thousands of tiny partitions are rewritten into Iceberg with hidden partitioning and sorted by customer key. Over twelve months, the team migrates in six domain waves, runs dual ingestion for active feeds, and validates each wave with automated count, aggregate and report comparisons. Oozie workflows are rebuilt in Airflow, and the cluster is decommissioned after a three-month read-only period.

Pitfalls to Avoid

  • Assuming every table can convert in place. Non-Hive layouts and text formats need rewrites; test conversions on a snapshot first.
  • Deleting files manually. Let Iceberg manage files through its own operations to avoid corrupting tables.
  • Neglecting security translation. Ranger policies do not map automatically; missing or overly broad grants are common migration defects.
  • Forgetting maintenance. New Iceberg tables need compaction and snapshot expiry from day one, or performance will degrade.
  • Underestimating code migration. Data moves faster than jobs. Budget engineering time for MapReduce, Pig and custom UDF rewrites.

Outlook

Between 2027 and 2030, expect most remaining large Hadoop estates to move to object storage and open table formats, whether in the cloud or on premises. Catalog interoperability and AI-assisted code conversion will reduce the cost of migrating workloads, while governance requirements for AI will make the move from loosely governed Hive tables to cataloged, policy-controlled Iceberg tables increasingly necessary rather than optional.

Conclusion

A Hadoop exit is a large program, but it is far more manageable when treated as a sequence of well-defined steps: assess and shrink the scope, design the target lakehouse, choose in-place conversion or rewrite per table, run in parallel, validate rigorously and decommission deliberately. Done well, it does more than replace aging infrastructure. It turns historical data into a governed, multi-engine asset ready for analytics and AI.

How Hanoi Technology Can Help

Hanoi Technology plans and executes Hadoop-to-lakehouse migrations, from estate assessment to validation and decommissioning, through projects or dedicated teams.

Further Reading

Turn These Ideas into Results

Book a free consultation with our experts. We reply within 24 hours with a practical next step for your organization.