Move Hive tables to Iceberg in waves: inventory the tables, choose in-place conversion or rewrite per table, run the same queries before and after, and keep a rollback until the test passes. In-place conversion is quick because it leaves data files as they are; rewriting lets you repartition and fix small files.
Pre-checks
- List every table with size, file count, format (Parquet, ORC, Avro), partitioning and write pattern.
- Note the engines and jobs that read or write each table.
- Check your Cloudera Runtime release for the Iceberg features you need, using the Iceberg feature matrix.
- Check Ranger policies on each table, because the new table needs the same rules.
- Agree a rollback and who signs off.
Then screen for the cases Cloudera says in-place migration cannot take:
| Check | What Cloudera documents | If it fails |
|---|---|---|
| File format | The source must be Avro, ORC or Parquet | Rewrite into Iceberg instead |
| Column types | Some Hive types have no Iceberg equivalent, such as tinyint and smallint. Tables with them are not migrated | Change the column type first, or rewrite with a cast |
| Partition values | Tables partitioned by string columns whose values contain a forward slash cannot be migrated, because of an Apache Iceberg bug | Clean the values or rewrite |
| Table kind | Cloudera's in-place page covers external tables | Check managed tables separately before you plan them |
Conversion methods
| Method | How | Choose it when | Watch for |
|---|---|---|---|
| In place (Hive) | ALTER TABLE ... SET TBLPROPERTIES with the Iceberg storage handler | Data files are healthy and partitioning is fine | Existing small files stay small until you compact |
| In place (Impala) | ALTER TABLE ... CONVERT TO ICEBERG | You work from Impala and your release supports it | Check the format-version setting afterwards |
| In place (Spark) | The Iceberg migrate procedure, with snapshot for a trial run | You run Spark and want a backup table kept | Fails on bucketed tables |
| Rewrite | CREATE TABLE ... AS SELECT into a new Iceberg table | You want new partitioning or sorting, or to fix small files | Needs extra storage and a cut-over of readers and writers |
-- Hive: convert in place
ALTER TABLE sales.orders SET TBLPROPERTIES (
'storage_handler'='org.apache.iceberg.mr.hive.HiveIcebergStorageHandler');
-- Impala: convert in place
ALTER TABLE sales.orders CONVERT TO ICEBERG;
-- Rewrite into a new table (Impala)
CREATE TABLE sales.orders_ice STORED AS ICEBERG AS SELECT * FROM sales.orders;The Apache Iceberg Hive documentation says migration of external Avro, Parquet or ORC tables is a separate step from other changes, while a Cloudera example combines them. Follow the Cloudera guide for your release.
Iceberg format version 1 or 2
Cloudera's Impala route converts the table to an Iceberg V1 table, and a second statement sets V2. The Hive route in Cloudera's Data Hub example sets the format version in the same statement as the storage handler.
-- Impala: convert, then move to format version 2
ALTER TABLE sales.orders CONVERT TO ICEBERG;
ALTER TABLE sales.orders SET TBLPROPERTIES ('format-version'='2');
-- Hive: one statement
ALTER TABLE sales.orders SET TBLPROPERTIES (
'storage_handler'='org.apache.iceberg.mr.hive.HiveIcebergStorageHandler',
'format-version'='2');Version 2 is the version that supports row-level deletes, which is why most teams want it. Apache Iceberg has defaulted new tables to version 2 since release 1.4.0.
What happens to the old table
In-place migration regenerates only metadata, and the new metadata points at the existing data files. That is why it is fast. The new Iceberg table takes the old table's name and location. Cloudera gives a hard warning: do not drop, move or change the old table during migration, because doing so can delete the data files that both tables use. The exception it names is setting external.table.purge to FALSE, which makes a drop safe.
With the Spark route, the Iceberg documentation adds that migrate keeps the original table as a backup unless you ask it not to, and that the snapshot procedure creates a trial table that shares the source files. A snapshot table cannot expire snapshots, because that would delete files it does not own.
-- Spark: trial run that leaves the source untouched
CALL catalog_name.system.snapshot('sales.orders', 'sales.orders_trial');
-- Spark: migrate in place, keeping the original as a backup table
CALL catalog_name.system.migrate('sales.orders');Speed on big tables
For Impala conversions, the NUM_THREADS_FOR_TABLE_MIGRATION query option sets the maximum threads. Cloudera notes that one partition is processed at a time, with threads working across its files, so a table with one file per partition runs one at a time. Many small partitions finish slower than a few large ones.
Query tests
- Pick the ten queries that matter most for the table, and record runtime and rows returned.
- Run them on the old table, then on the converted table.
- Compare results row for row, and compare runtimes and planning time.
- Record the table's file count and size before and after.
- Run each reader and writer job once against the converted table in a test window.
Rollback
Keep the old table, or a copy of its definition and files, until the test passes and readers have moved. Cut over writers last. If a check fails, repoint readers at the original and investigate. Do not expire snapshots or delete originals until the sign-off.
A wave plan
| Wave | Tables | Why this order |
|---|---|---|
| 0 | One low-risk table | Proves the steps, the Ranger rules and the rollback |
| 1 | Read-mostly reporting tables | Few writers to move, easy to compare results |
| 2 | Tables with small-file pain | The rewrite method pays off most here |
| 3 | Tables with many writers or streaming input | Needs the most cut-over planning, so go last |
After the move
Compact and expire snapshots on a schedule, using the maintenance runbook. For a worked example see moving Hive tables to Iceberg on Cloudera, and for the platform view see open data lakehouse on Cloudera. If other platforms need these tables later, read the Iceberg REST catalog guide.
A first engagement
Duczer East offers a migration plan: we inventory your tables, screen each against the checks above, pick a method per table, and hand back a wave plan with test queries and a rollback for each wave.



