Migrating a Hive table to Iceberg
You see how to use a simple ALTER TABLE statement to migrate an external Hive table to an Iceberg table. You see how to specify Iceberg classes in table properties to configure table input and output.
When you migrate an external Hive table to Iceberg, Hive makes the following changes:
-
Converts the storage_handler, serde, inputformat and outputformat properties of the table in HMS to use the Iceberg specific classes.
-
Reads the footers of the existing data files and generates the necessary Iceberg metadata files based on the footers.
-
Commits all the data files to the Iceberg table in a single commit.
You must meet the prerequisites for using Iceberg mentioned earlier.
.