AWS Builder Center
S3 Tables migrates Hive tables to Apache Iceberg for you

S3 Tables migrates Hive tables to Apache Iceberg for you

S3 Tables now migrate AWS Glue Hive (Parquet) tables to Apache Iceberg as a managed job: compatibility reports first, repeated syncs, minutes of cutover.

DevOps, Architecture, Security
Every analytics estate keeps one table everyone treats like live ordnance. Mine has been a Hive table of clickstream events going back nearly a decade, Parquet underneath and the Glue Data Catalog on top, with a migration plan that has said "next quarter" for six consecutive quarters. The honest blocker: moving a Hive table to Iceberg has historically meant weeks of engineering, type conversion work, rollback plumbing, and a cutover window somebody has to defend in change review.
On November 4, AWS  announced  managed migration of Apache Hive tables to Apache Iceberg in Amazon S3 Tables. The source material is Parquet tables registered in the AWS Glue Data Catalog, and the whole migration runs as a managed, API-driven operation with no pipelines to build and no compute to provision. Per the announcement, S3 Tables handle data validation, compatibility checks, type conversions, file recompression, and compaction. Before copying anything, the service identifies every source object in scope and generates a compatibility report. Production writes to the source table keep running the whole time except for a few minutes at cutover.
I read "managed migration" pitches with a squint, since the word managed sometimes turns out to mean the vendor handles the fun parts and you inherit the recovery plan. This one keeps the entire workflow, validation through compaction, inside the service, and the destination table stays read-only until you complete the migration, at which point it is promoted to read-write.

Setup: console first, then the CLI

In the S3 console, pick your destination table bucket and choose "Create table from migration," then name the namespace and table. AWS says the destination is created with recommended default settings tuned for query performance and storage efficiency. The destination is read-only while the migration runs, so nothing depends on it until you say it should.
Prefer the CLI and the  start-table-migration  command. The announcement's example wires a JSON payload holding the IAM role, the destination table with KMS encryption and Intelligent-Tiering storage, table properties, schema and sort order, the Glue source table, maintenance settings, migration policies, and three report locations:
cat > /tmp/start-migration.json <<'EOF'
{
"roleARN": "arn:aws:iam::123456789012:role/S3TablesMigrationRole",
"destinationTable": {
"tableBucketARN": "arn:aws:s3tables:us-east-1:123456789012:bucket/my-destination-bucket",
"namespace": "mynamespace",
"name": "my_destination_table",
"encryptionConfiguration": {
"sseAlgorithm": "aws:kms",
"kmsKeyArn": "arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab"
},
"storageClassConfiguration": { "storageClass": "INTELLIGENT_TIERING" },
"tags": { "team": "s3tables", "purpose": "migration" },
"properties": {
"writeFormat": "parquet",
"icebergFormatVersion": 2,
"compressionCodec": "zstd",
"dictionaryEncoding": true
},
"schema": {
"type": "struct",
"schemaId": 0,
"identifierFieldIds": [1],
"fields": [
{ "id": 1, "name": "id", "type": "long", "required": true, "doc": "primary key" },
{ "id": 2, "name": "payload", "type": "string", "required": false }
]
},
"icebergSortOrder": {
"orderId": 1,
"fields": [ { "sourceId": 1, "transform": "identity", "direction": "asc", "nullOrder": "nulls-first" } ]
}
},
"sourceType": "glueTable",
"source": {
"glueTable": {
"catalogId": "123456789012",
"databaseName": "my_glue_database",
"tableName": "my_source_table"
}
},
"dataMigration": {
"maintenanceSettings": {
"icebergCompaction": { "targetFileSizeMB": 512, "strategy": "binpack" },
"icebergSnapshotManagement": { "minSnapshotsToKeep": 3, "maxSnapshotAgeHours": 168 }
},
"migrationPolicies": {
"unmatchedSourceFieldsPolicy": "fail",
"incompatibleValuesPolicy": "fail"
}
},
"reviewMigrationPlan": false,
"migrationOutput": {
"bucket": "arn:aws:s3:::my-report-bucket",
"prefixes": {
"tableCompatibilityReport": "reports/table-compatibility/",
"objectCompatibilityReport": "reports/object-compatibility/",
"objectMigrationReport": "reports/object-migration/"
}
}
}
EOF

aws s3tables start-table-migration \
--cli-input-json file:///tmp/start-migration.json
Catching the destination up is a separate call: the post says you can invoke  sync-table-migration  as many times as you need before completing the migration, and each sync copies only what changed. Once you finish, Athena and SageMaker Unified Studio integrate directly with the table, or any tool that speaks the Apache Iceberg REST API can query it like any other Iceberg table.

Tips worth more than the setup guide

Keep the fail policies on. The example sets  unmatchedSourceFieldsPolicy  and  incompatibleValuesPolicy  to "fail," which is the polite way of saying the job stops instead of guessing when source fields or values cannot make the trip. Silent type coercion across a two-billion-row table is how migrations turn into archaeology projects; let the policy stop you, fix the source, and run again.
Treat sync as the rehearsal. Each pass copies only the deltas while the source keeps accepting writes, so you can run it in daylight, watch what lands, and book the cutover window with measurements instead of folklore. The cutover pause is the only downtime the announcement describes, a few minutes long, so it takes a quiet stretch to be safe.
Delegate with guardrails if a coding agent is doing the typing. The  Agent Toolkit for AWS  ships a  migrating-hive-tables-to-s3-tables  skill that analyzes existing IAM policies and recommends equivalent destination policies, validates the migration plan, executes the Start, Sync, and Complete calls, and monitors job progress. The IAM half is where I would point it first; a migration role is exactly where hand-written policies go sideways.

Costs and the security review

Billing per the announcement: you pay only for the data copied, with no charge for the Hive-to-Iceberg conversion, and source objects in S3 Intelligent-Tiering stay in their current access tier. The destination runs under standard S3 Tables pricing, with maintenance and compaction built into the managed service.
Regions at launch: US East (N. Virginia, Ohio), US West (Oregon), Asia Pacific (Mumbai, Singapore, Sydney, Tokyo), and Europe (Frankfurt, Ireland, Stockholm). The scope is strict too: AWS Glue-registered Hive tables stored in Parquet, within the same AWS account and Region. If any of those four facts is false for a given table, this path is not open for it yet; the  migration documentation  tracks what qualifies.
For the security review: the  roleARN  in the payload is the credential the entire job runs under, so scope it to this migration's source and destination instead of a service-wide role; the Agent Toolkit skill's policy analysis targets that problem directly. The example encrypts the destination with SSE-KMS and a named key, which puts the key's policy on the review agenda too. Compatibility and migration reports land in a bucket you choose and describe your table schemas, so that bucket deserves a deliberate access decision rather than a default one. And the same-account, same-Region constraint doubles as a residency statement: nothing crosses either boundary.
The nearly-decade-old table in my estate is still waiting, but the excuse pile got smaller. Start, sync, sync, complete, with a compatibility report to read before the final call, replaces weeks of conversion engineering. The hard part left is the meeting where the team decides which tables go first.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article