View a markdown version of this page

Data Migration - Amazon EMR Migration Guide

Data Migration

This chapter covers the end-to-end process of migrating data from on-premises Hadoop environments (HDFS, relational databases, and streaming sources) to Amazon S3 on AWS. The assumed starting point is a traditional Hadoop deployment: Cloudera (CDH/CDP), Hortonworks (HDP), MapR, or a custom Apache Hadoop distribution. The target architecture uses Amazon S3 as the central data repository, with data stored in open formats (Apache Parquet, Apache ORC, or Apache Iceberg tables) and cataloged in the AWS Glue Data Catalog.

HDFS vs Amazon S3 — key behavioral differences

Understanding the differences between HDFS and Amazon S3 is critical to avoid runtime failures and performance issues. Amazon S3 is an object store, not a POSIX filesystem. The Hadoop FileSystem API abstracts most of these differences, but some behaviors change fundamentally.

Behavioral differences between HDFS and Amazon S3
Behavior HDFS Amazon S3 Migration impact
Consistency Strong (single-writer) Strong read-after-write (since December 2020) No action needed.
Rename Atomic, O(1) Copy + delete, O(n) Use S3-optimized committers or Iceberg.
Append Supported Not supported Write new files instead.
Directories Real directories, atomic Simulated through key prefixes Avoid directory-atomicity patterns.
File listing Fast (inode-based) Slower (prefix scan) Use Iceberg metadata for file discovery.
Permissions POSIX rwx, HDFS ACLs IAM policies, bucket policies Redesign with IAM/Lake Formation.
Locality Data-local compute Network-accessed (10+ Gbps) Locality less critical on AWS.
Durability 3x replication 11 nines (automatic) No action — Amazon S3 exceeds HDFS.
Cost model Hardware (fixed) Pay per GB + requests Optimize: fewer small files, right storage class.

Critical code patterns to address

Address the following critical code patterns when you migrate from HDFS to Amazon S3:

  1. Output committers — Replace the FileOutputCommitter algorithm 1 with the EMRFS S3-optimized committer (default on EMR 6.x-7.9), the S3A Magic Committer (default on EMR 7.10+ with S3A), or Iceberg tables (atomic metadata-based commits).

  2. Temp files and scratch directories — Write temp files to instance storage (local HDFS) and write final output to Amazon S3.

  3. Small files — Compact to 128 MB to 1 GB. Use S3 Tables auto-compaction for ongoing management.

  4. Hive INSERT OVERWRITE — On HDFS this atomically replaces a partition directory. On Amazon S3 it is a multi-step operation. Use the Iceberg INSERT OVERWRITE for atomic partition replacement through metadata.

Large quantities of data on an ongoing basis

The following services move large quantities of data from your on-premises environment to Amazon S3 on an ongoing basis.

Direct Connect and AWS Site-to-Site VPN

Direct Connect provides dedicated, high-bandwidth connections from your premises to AWS, and we recommend it for transferring large quantities of data on an ongoing basis. Dedicated connections are available at 1 Gbps, 10 Gbps, 100 Gbps, and 400 Gbps over single-mode fiber, either direct or through a Direct Connect Partner. Hosted connections range from 50 Mbps to 25 Gbps through a Direct Connect Partner.

Diagram of an AWS Direct Connect data transfer architecture.

Figure 11: Direct Connect

Direct Connect uses 802.1Q VLANs and supports three virtual interface types: private (for VPC access), public (for AWS public services such as Amazon S3), and transit (through AWS Transit Gateway to multiple VPCs across accounts and Regions). The Direct Connect Resiliency Toolkit configures connections for a 99.99% SLA. MACsec encryption (IEEE 802.1AE) is supported on 10, 100, and 400 Gbps dedicated connections.

AWS Site-to-Site VPN uses IPsec tunnels over the internet for encrypted connectivity. You attach a virtual private gateway or transit gateway, configure a customer gateway device, and establish the tunnels.

Note

Use Direct Connect for large ongoing transfers, because it offers lower cost, higher bandwidth, and a more consistent experience. AWS Site-to-Site VPN suits an immediate need with low-to-modest bandwidth that can tolerate internet variability. For multicloud scenarios, AWS Interconnect is a newer managed service for private, high-speed connections between AWS and other cloud providers.

Accessing Amazon S3 from Hadoop

Apache Hadoop provides the S3A connector, which implements the Hadoop FileSystem interface for Amazon S3 and is usable with DistCp to migrate from HDFS. The following example command copies data from HDFS to Amazon S3:

hadoop distcp hdfs://source-folder s3a://destination-bucket

Starting with EMR 7.10, AWS transitions from the proprietary EMR File System (EMRFS) to EMR S3A as the default Amazon S3 connector. EMR S3A enhances the open-source S3A connector with AWS optimizations, delivering read performance comparable to EMRFS while maintaining full API compatibility with open-source Spark and Hadoop. This applies across EMR on Amazon EC2, EMR Serverless, EMR on Amazon EKS, and EMR on AWS Outposts.

For clusters that lack on-premises compute capacity, use S3DistCp, an EMR extension of DistCp that is optimized for Amazon S3 with file concatenation, compression, and efficient parallel transfers. For more information, see the AWS Big Data Blog posts Seven Tips for Using S3DistCp on Amazon EMR to Move Data Efficiently Between HDFS and Amazon S3 and Migrate data from an on-premises Hadoop environment to Amazon S3 using S3DistCp with Direct Connect.

You can also use commercial solutions such as WANDisco LiveData Migrator for live HDFS-to-S3 migrations with zero downtime, supporting both one-time and continuous replication. Apache Hadoop and EMR integration with Amazon S3 can also write data processing workflow output directly to Amazon S3. For relational database ingestion, we recommend AWS Glue with JDBC connections or AWS Database Migration Service (AWS DMS).

Note

Apache Sqoop was retired to the Apache Attic in June 2021 and is not available on EMR 7.x. For relational database ingestion to Amazon S3, use one of the following: AWS Glue with JDBC connections for batch ETL, AWS DMS for continuous replication with change data capture (CDC), Amazon AppFlow for SaaS application data, or zero-ETL integrations.

AWS Glue

AWS Glue is a serverless data integration service that discovers, prepares, moves, and integrates data. It automatically discovers data and stores metadata (table definitions and schemas) in the AWS Glue Data Catalog. AWS Glue 5.0 runs on Apache Spark 3.5.4 with Java 17 and Python 3.11, and provides native support for Apache Iceberg, Delta Lake, and Apache Hudi.

Diagram of a data migration using AWS Glue Data Catalog.

Figure 12: AWS Glue Data Catalog

AWS Glue can access on-premises relational databases through JDBC to crawl a data store and catalog its metadata. ETL jobs can use the store as a source or a target, for example by writing to Amazon S3. The following list describes key capabilities:

  • Batch ETL jobs — Scheduled extract, transform, and load from relational databases, file systems, and other sources into Amazon S3.

  • Streaming ETL jobs — Consume from Amazon Kinesis Data Streams, Apache Kafka, and Amazon MSK, writing to Amazon S3 or JDBC.

  • Crawlers — Infer file types, schemas, and partition structures, populating the Data Catalog for Amazon Athena and Amazon Redshift Spectrum.

  • Access control and integration — Fine-grained access controls and integration with Amazon SageMaker Lakehouse.

Note

For ongoing migration from on-premises relational databases, AWS Glue is fully managed and serverless, with no ETL infrastructure to provision. For streaming or near-real-time ingestion, consider AWS Glue streaming ETL jobs as an alternative to custom Spark Streaming applications.

AWS DataSync

AWS DataSync is an online data transfer service that simplifies, automates, and accelerates moving data between on-premises storage and AWS. It supports HDFS, NFS, SMB, self-managed object storage, and cloud storage from other providers, including Azure Blob Storage. AWS DataSync uses a purpose-built protocol with parallel, multi-threaded transfers, and provides end-to-end encryption and data integrity validation.

To transfer from HDFS, deploy an AWS DataSync agent on-premises, configure the source (HDFS) and destination (Amazon S3) locations, and run a task. AWS DataSync offers Enhanced mode (parallel listing, structured JSON logging, and unlimited object counts) and Basic mode. HDFS-to-S3 transfers currently require Basic mode.

Note

Use AWS DataSync for fast bulk transfer of existing data. For subsequent low-latency on-premises access, pair it with Amazon S3 File Gateway. For multicloud scenarios, AWS DataSync also supports Azure Blob Storage and other cloud providers.

AWS Storage Gateway

AWS Storage Gateway is a hybrid cloud storage service that gives on-premises applications access to virtually unlimited Amazon S3 storage. The Amazon S3 File Gateway configuration offers low-latency access to Amazon S3 through NFS (versions 3 and 4.1) and SMB (versions 2 and 3). Applications and platforms without native Amazon S3 capabilities, such as lab equipment, mainframes, databases, and data warehouses, can write files directly into Amazon S3, where files are converted to objects in their original format.

Amazon S3 File Gateway manages transfer, buffers against network congestion, streams data in parallel, manages bandwidth, provides a local cache for low-latency access, and supports AWS KMS encryption, including dual-layer server-side encryption (DSSE-KMS). You can deploy it as a VM on VMware ESXi, Microsoft Hyper-V, or Linux KVM, as a hardware appliance, or as an Amazon EC2 instance.

Note

AWS Storage Gateway suits ongoing scenarios where on-premises applications write to Amazon S3 using standard file protocols without code changes. For bulk transfers, use AWS DataSync as the primary mechanism and Amazon S3 File Gateway for subsequent low-latency access.

Event and streaming data on a continuous basis

The following patterns and services migrate event and streaming data from your on-premises environment to Amazon S3 on a continuous basis.

Streaming ingestion directly to Apache Iceberg tables

A common on-premises pattern is the Lambda Architecture, where streaming data lands in a raw layer (HDFS) and a batch job processes it into a curated layer. This creates operational complexity, including duplicate batch and real-time codebases, latency, and consistency challenges. The Lambda architecture is now considered obsolete for new builds.

Unified processing engines (Spark Structured Streaming and Apache Flink) treat batch and streaming as the same model. Apache Iceberg supports both batch and streaming writes into a single table with ACID guarantees, collapsing the batch, speed, and serving layers into one path. Streaming data lands directly in Iceberg tables on EMR that are immediately queryable, with no separate raw-to-curated ETL step.

Spark Structured Streaming on EMR is the Spark-native approach (EMR 6.5.0+). Only micro-batch execution is supported with Iceberg (Trigger.Continuous does not work). Only append output mode is supported for the native Iceberg streaming sink; upserts require foreachBatch with MERGE INTO. The following SparkSession configuration sets up the AWS Glue catalog for Iceberg:

spark = SparkSession.builder \ .config("spark.sql.catalog.glue_catalog", "org.apache.iceberg.spark.SparkCatalog") \ .config("spark.sql.catalog.glue_catalog.catalog-impl", "org.apache.iceberg.aws.glue.GlueCatalog") \ .config("spark.sql.catalog.glue_catalog.warehouse", "s3://data-lake/warehouse/") \ .config("spark.sql.catalog.glue_catalog.io-impl", "org.apache.iceberg.aws.s3.S3FileIO") \ .getOrCreate()

Each micro-batch commits an Iceberg snapshot atomically. Checkpoints are stored at the specified Amazon S3 path. On failure, Spark resumes from the last committed checkpoint, providing exactly-once semantics for append operations. Streaming writes produce small files that require compaction, so pair them with S3 Tables auto-compaction, Athena OPTIMIZE, or scheduled rewrite_data_files() on EMR.

On-premises environments commonly use Apache Flume or Kafka Connect to land streaming data into HDFS. The following table maps these on-premises components to their AWS replacements.

On-premises streaming components and their AWS replacements
On-premises component AWS replacement Benefit
Flume agents writing to HDFS Spark Structured Streaming on EMR to Iceberg EMR-native, direct Iceberg writes
Kafka Connect HDFS Sink Spark Structured Streaming on EMR from MSK Native Kafka integration on EMR
Custom Spark Streaming to HDFS Spark Structured Streaming on EMR to Iceberg Same Spark APIs, Iceberg target
Cron-scheduled compaction jobs S3 Tables auto-compaction or Athena OPTIMIZE Managed compaction
Note

Adopt Spark Structured Streaming on EMR with Iceberg as the default pattern for new streaming workloads during migration. It eliminates the raw landing zone, the batch compaction job, and the catalog registration step. For stateful stream processing, such as windowed aggregations and pattern detection, evaluate Amazon Managed Service for Apache Flink separately.

AWS Database Migration Service

AWS DMS provides enhancements relevant to streaming data migration.

  • Streaming CDC to Iceberg — AWS DMS can write CDC events to Amazon MSK or Amazon Kinesis Data Streams as targets. Combined with Spark Structured Streaming on EMR, this lands directly in Iceberg tables, replacing the CSV-to-S3 pattern.

  • DMS Serverless — Generally available since June 2023, DMS Serverless automatically provisions and scales capacity using DMS Capacity Units (DCUs), where 1 DCU equals 2 GB of RAM. Storage starts at 100 GB and auto-scales at 90% utilization. Built-in Multi-AZ high availability requires no separate configuration. DMS Serverless does not support public IP addresses, so use VPC endpoints for Amazon S3, Amazon Kinesis, AWS Secrets Manager, and other services. If replication is idle for 48 hours without restart, resources and metadata are permanently deprovisioned.

The following diagram shows the recommended CDC-to-Iceberg pattern:

Source DB -> DMS Serverless (CDC) -> MSK Topic -> Spark Structured Streaming on EMR -> Iceberg Table

Spark applies MERGE INTO operations for upserts and deletes, maintaining a current-state view in the Iceberg table while preserving full change history through Iceberg snapshot isolation.

Using Amazon S3 as the central data repository

Amazon S3 is the central data repository for your migrated data lake. The following capabilities are relevant to data lake migration:

  • Strong read-after-write consistency — Since December 2020, Amazon S3 provides strong read-after-write consistency for all operations. You can rely on the same consistency semantics you had with HDFS.

  • Identity-based access control — S3 Access Grants maps corporate identities directly to data permissions, which simplifies migration of Apache Ranger and HDFS ACL models.

  • Open table format support — With S3 Tables and native Apache Iceberg integration, Amazon S3 supports structured tabular data with ACID transactions, schema evolution, hidden partitioning, and time travel.

Amazon S3 Tables — managed destination for structured data

Amazon S3 Tables is a purpose-built S3 storage type for tabular data. It stores data natively in Apache Iceberg format and provides built-in query optimization, including automatic compaction, snapshot management, and unreferenced file cleanup. This eliminates the operational overhead of using standard S3 buckets as a data lake destination.

S3 Tables provides the following key capabilities:

  • Built-in Iceberg catalog — S3 Tables provides a native Iceberg REST catalog endpoint. You can also register tables in the AWS Glue Data Catalog through catalog federation for Amazon Athena, Amazon Redshift Spectrum, and EMR.

  • Query performance — S3 Tables provides up to 3x faster query performance and up to 10x higher transactions per second compared with self-managed Iceberg on standard S3, due to optimized storage layout, reduced metadata overhead, and S3-native catalog integration.

  • Snapshot management — S3 Tables automatically cleans up expired snapshots. By default, it retains a minimum of 1 snapshot and a maximum age of 120 hours, and both values are configurable.

  • Automatic compaction — Small files from streaming or batch writes are compacted into optimally sized files, with a default target of 512 MB, configurable down to 64 MB. S3 Tables supports binpack, sort, and z-order strategies and eliminates the small file problem.

The traditional approach to migrating from HDFS to a data lake requires moving raw files, defining schemas, converting to columnar formats, building compaction jobs, and managing partition evolution manually. With S3 Tables, schema management, compaction, snapshot lifecycle, and metadata are handled automatically, so the migration path simplifies to moving data to S3 Tables using Apache Spark on EMR with Iceberg write APIs. The following example configures the S3 Tables catalog on EMR 7.x:

spark = SparkSession.builder \ .config("spark.sql.catalog.s3tablesbucket", "org.apache.iceberg.spark.SparkCatalog") \ .config("spark.sql.catalog.s3tablesbucket.catalog-impl", "software.amazon.s3tables.iceberg.S3TablesCatalog") \ .config("spark.sql.catalog.s3tablesbucket.warehouse", "arn:aws:s3tables:us-east-1:123456789012:bucket/my-table-bucket") \ .getOrCreate()

Consider the following when you evaluate S3 Tables compared with standard S3 buckets:

  • S3 Tables requires EMR 7.x (Spark 3.4+) and supports Apache Iceberg format only.

  • Table buckets are a separate bucket type. You cannot mix regular S3 objects with tables; all access goes through the Iceberg interface or the S3 Tables API.

  • For ad hoc query with Amazon Athena or Amazon Redshift Spectrum, S3 Tables provides optimized metadata without separate AWS Glue Data Catalog configuration.

  • For streaming ingestion that produces many small files, S3 Tables auto-compaction eliminates manual compaction jobs.

  • For tabular and structured data, we recommend S3 Tables.

  • For unstructured data such as images, logs, and ML artifacts, use standard S3 buckets.

Note

For new data lake migrations on EMR 7.x, evaluate S3 Tables as the default destination for structured and semi-structured data. Reserve standard S3 buckets for unstructured data, raw landing zones, and workloads on EMR 6.x.

Optimizing cost and performance

This section covers techniques for optimizing the cost and performance of your migrated data lake on Amazon S3.

S3 Tables auto-compaction — solving the small file problem

S3 Tables provides built-in automatic compaction for Iceberg tables, enabled by default for all tables. It supports Parquet, Avro, and ORC. Compaction continuously merges small files, applies pending row-level deletes, and can rewrite files to improve sort order.

You configure compaction through the put-table-maintenance-configuration API.

  • Target file size — Default 512 MB, adjustable from 64 MB to 512 MB.

  • Strategy — Default Auto. The options are Auto, Binpack, Sort, and Z-order.

  • Status — Default Enabled. You can disable it.

We recommend the Auto strategy for most workloads. Binpack combines small files without sorting, which is best for unsorted tables. Sort and Z-order reorganize data by specified columns for filtered and multi-dimensional queries, but they incur higher compaction cost.

S3 Tables also provides configurable snapshot management. By default, it retains a minimum of 1 snapshot with a maximum age of 120 hours. The data files of expired snapshots become noncurrent and are permanently deleted per the unreferenced file removal policy.

For Iceberg tables on standard S3 buckets (not S3 Tables), schedule periodic compaction using the rewrite_data_files stored procedure on EMR Spark. To reduce small files at write time, set the appropriate table properties.

The original minimum file size guidance was 64 MB. With modern Spark vectorized readers and Iceberg metadata-driven scan planning, the optimal target has shifted.

  • Iceberg tables — 256 MB to 512 MB.

  • High-concurrency query workloads — 128 MB to 256 MB.

  • Standard S3 Parquet queried by Amazon Athena or Amazon Redshift Spectrum — 128 MB to 512 MB.

  • EMR Spark on standard Parquet — 256 MB to 1 GB.

  • Streaming ingestion — Let auto-compaction handle the initial small files.

To determine the compaction approach, use the following guidance:

  • If data is in S3 Tables, auto-compaction is built-in.

  • If data is Iceberg on standard S3, schedule rewrite_data_files() on EMR or use Athena OPTIMIZE.

  • If data is raw Parquet or ORC on standard S3, use S3DistCp on EMR.

Note

For new migrations, use S3 Tables with built-in auto-compaction as the default. For existing Iceberg tables on standard S3, schedule periodic rewrite_data_files(). Reserve S3DistCp for legacy Parquet and ORC datasets not yet migrated to Iceberg.

Apache Iceberg hidden partitioning

Hive-style partitioning uses directory structures such as s3://my_bucket/logs/year=2018/month=01/day=23/. Iceberg hidden partitioning eliminates this manual layout and enables partition evolution without rewriting data.

Hive-style partitioning has the following limitations:

  • Partition columns must be materialized as directory names.

  • Changing the scheme requires rewriting all data.

  • Users must include partition columns in queries to benefit from pruning.

  • External partition metadata can become inconsistent with the S3 layout.

Iceberg defines partition transforms in table metadata. On write, Iceberg applies the transform and organizes files accordingly while the transform stays hidden from query users. The engine prunes partitions based on source-column predicates.

Partition transforms
Transform Description Example
identity Value unchanged identity(category)
year Extract year from timestamp year(ts)
month Extract month from timestamp month(ts)
day Extract day from timestamp day(ts)
hour Extract hour from timestamp hour(ts)
bucket[N] Hash modulo N bucket(16, id)
truncate[W] Truncate to width W truncate(10, name)
void Always produces null (used to drop a partition) void(field)

The following example defines partition transforms at table creation time:

CREATE TABLE glue_catalog.analytics.events ( event_id string, user_id string, event_timestamp timestamp) USING iceberg PARTITIONED BY (days(event_timestamp), bucket(16, user_id));

In this example, days(event_timestamp) partitions by day derived from the timestamp, and bucket(16, user_id) distributes data across 16 buckets by a hash of user_id. A query with WHERE event_timestamp > '2026-01-01' automatically prunes partitions with no synthetic partition column.

Partition evolution is a metadata-only operation. Old data files retain their original layout, new data uses the new scheme, and Iceberg resolves both at query time.

To migrate existing Hive-style partitioned tables to Iceberg without rewriting data, use the migrate procedure on EMR Spark. It creates Iceberg metadata that points to existing Parquet, Avro, or ORC files in place. After migration, evolve the partition scheme with ALTER TABLE without rewriting historical data.

Note

Use migrate() to adopt Iceberg without rewriting, then evolve the partition scheme incrementally. For new tables, define partition transforms at creation time.

Amazon Glacier Instant Retrieval

Amazon Glacier Instant Retrieval is the lowest-cost storage for long-lived, rarely accessed data that requires millisecond retrieval. It provides 11 nines of durability, 99.9% availability, and stores data across three or more Availability Zones. It offers up to 68% lower per-GB storage cost than S3 Standard-IA (approximately USD $0.004/GB/month compared with USD $0.0125/GB/month in us-east-1), with per-GB retrieval costs about three times higher than Standard-IA. It is most cost-effective for data accessed about once each quarter or less. No RestoreObject call is required. The minimum storage duration is 90 days, and the minimum billable object size is 128 KB.

Data lake storage tiering
Tier Storage class Access pattern Retrieval time Approximate storage
Hot — Processing S3 Express One Zone Frequent Single-digit ms USD ~$0.16/GB/month
Hot — Active S3 Standard Frequent Milliseconds ~$0.023/GB/month
Warm S3 Intelligent-Tiering Unknown or variable Milliseconds ~$0.023/GB/month
Cool S3 Standard-IA Monthly Milliseconds ~USD $0.0125/GB/month
Cold — Instant Amazon Glacier Instant Retrieval Quarterly Milliseconds ~USD $0.004/GB/month
Cold — Flexible Amazon Glacier Flexible Retrieval Annual Minutes to hours ~$0.0036/GB/month
Frozen Amazon Glacier Deep Archive Rarely or never Hours ~$0.00099/GB/month
Note

Storage costs are approximate per-GB/month for us-east-1. Retrieval fees, minimum duration charges, and per-request costs vary.

S3 Intelligent-Tiering now includes five access tiers.

  • Frequent Access — On upload or transition.

  • Infrequent Access — Not accessed for 30 consecutive days, applied automatically.

  • Archive Instant Access — Not accessed for 90 consecutive days, applied automatically, with millisecond retrieval and no restore.

  • Archive Access — Optional, must be activated, for data not accessed for 90 or more days, requires RestoreObject.

  • Deep Archive Access — Optional, must be activated, for data not accessed for 180 or more days, requires RestoreObject.

Archive Instant Access is automatic. You must activate Archive Access and Deep Archive Access through the PutBucketIntelligentTieringConfiguration API. Objects smaller than 128 KB are always stored in Frequent Access and are not monitored. A small monthly per-object monitoring and automation fee applies (approximately USD $0.0025 per 1,000 objects).

Note

For data in Standard-IA accessed quarterly or less, evaluate Glacier Instant Retrieval for savings with no change in latency. For unpredictable patterns, use Intelligent-Tiering. Activate the Archive and Deep Archive tiers explicitly if you need them.

Updated WORM compliance: S3 Object Lock replaces Glacier Vault Lock

S3 Object Lock provides WORM (write once read many) guarantees directly on standard S3 buckets without archiving to Glacier. It offers two retention modes. In Compliance mode, no user, including the root user, can delete or overwrite an object until retention expires. In Governance mode, users with the s3:BypassGovernanceRetention permission can override retention. You can apply a Legal Hold flag independently of retention.

For migrations, Object Lock is relevant for raw landing zone data that must be preserved for regulatory compliance, such as financial records, healthcare audit logs, and legal discovery.

Important

S3 Object Lock is incompatible with Apache Iceberg table maintenance. Iceberg compaction (rewrite_data_files()), snapshot expiry (expire_snapshots()), and orphan file cleanup all require deleting old data and metadata files, which Object Lock blocks, causing maintenance jobs to fail. S3 Tables auto-compaction is also blocked. Do not enable Object Lock on buckets that store Iceberg tables.

As a recommended pattern, separate immutable compliance data from Iceberg-managed analytics data. Use a raw or compliance bucket with Object Lock as an immutable landing zone, and a separate analytics bucket without Object Lock.

Note

Replace Glacier Vault Lock with S3 Object Lock for WORM at the point of ingestion. Keep Object Lock on raw and compliance buckets only, never on buckets hosting Iceberg tables or S3 Tables.

Amazon S3 Storage Lens — organization-wide cost visibility

Amazon S3 Storage Lens delivers organization-wide visibility into object storage usage and activity across all buckets, accounts, and Regions, with dashboards, trend analysis, and recommendations.

During and after a large HDFS-to-S3 migration, Storage Lens addresses lost visibility by providing the following:

  • Usage metrics — Total storage, object count, and average object size per bucket, prefix, account, and Region.

  • Activity metrics — In the advanced tier, GET, PUT, and DELETE request rates and bytes downloaded and uploaded, which identify hot and cold datasets.

  • Cost optimization recommendations — Flags buckets without lifecycle policies, identifies data eligible for cheaper storage classes, and detects incomplete multipart uploads.

  • Prefix-level aggregation — Up to 10 levels by default, and up to 50 in the advanced tier.

Storage Lens offers a free tier with 28-day retention and an advanced tier with 15-month retention, status-code metrics, Amazon CloudWatch publishing, and contextual recommendations. You can export metrics to S3 in CSV or Parquet for analysis with Amazon Athena or EMR.

After migration, use Storage Lens to identify optimization opportunities.

  • Buckets with high storage and zero GET requests — Unused data for archival or deletion.

  • Buckets without lifecycle configurations — Configure tiering.

  • Buckets with high object counts and low average object size — The small file problem; apply compaction.

  • Buckets with incomplete multipart upload bytes — Add lifecycle rules to abort them.

Note

Enable Storage Lens at the organization level before you start a migration. Use the free dashboard for basic visibility. For prefix-level analysis and custom migration-progress dashboards, enable advanced metrics with Parquet export to S3.

Using AWS Glue to transform and normalize data — updated guidance

AWS Glue provides updated capabilities for transforming and normalizing data during migration.

  • AWS Glue 4.0 — Runs on Apache Spark 3.3.0 with Python 3.10 and provides native support for Iceberg, Hudi, and Delta Lake, so migration scripts can write directly to Iceberg tables, including schema evolution and hidden partitioning. This eliminates separate format conversion and catalog registration. AWS Glue 5.0 (Spark 3.5.x) is available for newer Spark features. ML transforms and PII transforms are not available in Glue 4.0.

  • AWS Glue Data Quality — Provides automated checks using the Data Quality Definition Language (DQDL), supporting over 25 rule types, and integrates into Glue ETL jobs. DQDL supports composite rules (and/or), where clauses for conditional validation (Glue 4.0+), and dynamic rules that compare against historical values.

  • AWS Glue interactive sessions — Let you develop and test migration scripts in Jupyter notebooks backed by Glue Spark sessions without running full jobs.

  • AWS Glue Flex jobs — Provide up to 34% cost savings for non-time-sensitive workloads, such as historical conversion and backfill, by using spare capacity. Actual savings vary and Flex jobs might experience start delays, so use them only for non-time-critical workloads. Set execution_class to FLEX.

Understand how applications work with Amazon S3

Understand how your applications interact with Amazon S3 before and after migration.

  • EMRFS S3-optimized committer — On EMR 6.x and 7.x, it is the default for Spark Parquet writes for versions prior to 7.10. Starting with EMR 7.10, S3A replaces EMRFS as the default S3 connector. For Iceberg tables, Iceberg uses its own commit protocol, so the S3 committer is not needed. S3 Express One Zone is compatible with both committers.

  • S3 strong read-after-write consistency — Since December 2020, Amazon S3 provides strong read-after-write consistency for all operations. The eventual-consistency concerns discussed in earlier guidance no longer apply.

  • S3 Mountpoint — This open source client, generally available since 2023, mounts an S3 bucket as a local filesystem through FUSE, so legacy POSIX scripts can read from S3 without code changes. It is optimized for read-heavy sequential workloads. For write-heavy or random access, use native S3 APIs or EMRFS.

S3 Express One Zone — high-performance temporary storage

S3 Express One Zone is a single-Availability-Zone, high-performance S3 storage class for workloads that issue hundreds of thousands of requests per second and benefit from single-digit millisecond latency. For EMR workloads bottlenecked by object-store request latency or small-file metadata operations rather than bulk throughput, pairing EMR with S3 Express One Zone can materially reduce runtime. It is supported on EMR 6.15.0+ on Amazon EC2 and EMR 7.2.0+ on EMR Serverless and EMR on Amazon EKS. For more information, see Upload data to Amazon S3 Express One Zone in the Amazon EMR Management Guide.

Use S3 Express One Zone in the following cases:

  • Interactive and ad hoc Spark SQL, where per-request latency on LIST, HEAD, and GET operations dominates.

  • Iterative ML and feature engineering, where you repeatedly read the same working set.

  • Shuffle-heavy Spark jobs with many small files.

  • Near-real-time ETL with Spark Structured Streaming, including micro-batch checkpointing, state store writes, and frequent small commits.

  • Metadata-heavy Hive, Flink, and HBase workloads (EMR 7.2.0+).

  • Hot working-set tier in tiered pipelines.

  • EMR Serverless and EMR on Amazon EKS short-lived jobs.

Do not use S3 Express One Zone in the following cases:

  • Data requires multi-AZ durability. S3 Express One Zone is single-AZ and not a system of record, so keep landing zones, archives, and authoritative datasets in a multi-AZ class.

  • Jobs rely on the S3A FileOutputCommitter. Writes fail with InvalidStorageClass, so use the magic committer.

  • Workloads are throughput-bound, not latency-bound.

  • You are running on unsupported EMR releases, such as pre-6.15.0 on Amazon EC2 or pre-7.2.0 on EMR Serverless and EMR on Amazon EKS.

Reference architecture pattern

A common layout uses two storage tiers.

  • Durable tier — Use S3 Standard for raw ingestion, curated outputs, and long-term datasets consumed across Availability Zones and services.

  • Hot working tier — Use S3 Express One Zone as a directory bucket in the same Availability Zone as the EMR cluster for the active working set, intermediate stages, and latency-sensitive reads and writes.

Promote data from the durable tier to the hot tier at the start of a processing window, run EMR jobs against the hot tier, and write final outputs back to the durable tier. This preserves cost, durability, and multi-AZ characteristics for persistent data while capturing the latency benefits for active compute.

Data transfer acceleration

The landscape of AWS data transfer services has evolved. This section consolidates the current options for accelerating transfers to Amazon S3. For operational guidance on AWS DataSync and Direct Connect in ongoing scenarios, see Large quantities of data on an ongoing basis.

Amazon S3 Transfer Acceleration

Amazon S3 Transfer Acceleration is a bucket-level feature that speeds up long-distance transfers by routing traffic through Amazon CloudFront edge locations, of which there are more than 400 worldwide. Data arrives at the nearest edge location and then routes to Amazon S3 over the AWS backbone network, delivering 50 to 500 percent faster transfer speeds for geographically distant clients.

Amazon S3 Transfer Acceleration has the following key characteristics:

  • You enable it per bucket, and clients use a dedicated endpoint (bucketname.s3-accelerate.amazonaws.com).

  • It works for both uploads and downloads.

  • It combines with multipart uploads.

  • You are charged only when acceleration provides a measurable improvement.

  • It supports IPv4 and IPv6 through a dual-stack endpoint.

Amazon S3 Transfer Acceleration is best when multiple geographically distributed sources upload to a single bucket.

Note

Amazon S3 Transfer Acceleration applies to general purpose buckets only. Use the Amazon S3 Transfer Acceleration Speed Comparison tool to confirm the benefit before you enable it.

AWS DataSync Enhanced mode

AWS DataSync Enhanced mode optimizes transfer by listing, preparing, transferring, and verifying data in parallel. It delivers higher performance than Basic mode and removes file-count limits.

Enhanced mode provides the following capabilities:

  • On-premises to Amazon S3 transfers from NFS and SMB sources through an Enhanced mode agent, available since December 2025.

  • Cross-cloud transfers, agentless, from Azure Blob Storage and Google Cloud Storage, available since May 2025.

  • S3-to-S3 transfers, agentless.

  • Structured JSON logging and richer Amazon CloudWatch metrics.

We recommend Enhanced mode for online migration when bandwidth is available. HDFS-to-S3 transfers still require Basic mode.

AWS Data Transfer Terminal

AWS Data Transfer Terminal is a physical data transfer service, launched in December 2024, that provides secure reservable locations. You bring your own storage devices and connect directly to the AWS network. It replaces the AWS Snow Family for new customers.

AWS Data Transfer Terminal works as follows.

  1. Schedule a reservation through the AWS Management Console at least 24 hours in advance.

  2. Bring storage devices with compatible 100G QSFP-LR4 fiber interfaces.

  3. Connect to the provided high-speed ports and transfer data to any AWS public endpoint, such as Amazon S3, Amazon EFS, or Amazon EC2.

  4. Validate the transfer and disconnect.

Each terminal provides at least two 100 GbE fiber connections (200 Gbps aggregate), and select locations offer four fibers (400 Gbps aggregate). Reservations last up to 24 hours. Pricing is per port-hour, with lower rates for same-continent uploads.

AWS Data Transfer Terminal is ideal for large one-time migrations with limited or unavailable bandwidth, recurring high-volume uploads, and scenarios that require device custody. AWS Partner white-glove services are available.

AWS Transfer Family

AWS Transfer Family is a fully managed file transfer service over SFTP, FTPS, FTP, and AS2 into Amazon S3 or Amazon EFS. It supports B2B file exchanges and partner ingestion.

Recent additions include the following:

  • AWS Transfer Family web apps (December 2024), which are no-code browser portals that let users upload, download, and manage files in Amazon S3.

  • Managed File Transfer Workflows (MFTW), which provide serverless post-upload processing such as decryption, decompression, tagging, and custom AWS Lambda steps.

  • Integration with existing identity providers, including Active Directory, LDAP, and custom authentication.

AWS Transfer Family is best for replacing legacy on-premises FTP and SFTP servers, or for enabling non-technical users and external partners to contribute data.

Direct Connect and AWS Interconnect

Direct Connect now supports dedicated connections at 1, 10, 100, and 400 Gbps. Native 400 Gbps connections have been available since July 2024 at select locations and avoid managing multiple connections in a link aggregation group. MACsec encryption is available on 10, 100, and 400 Gbps connections.

AWS Interconnect — multicloud, generally available since April 2026, is a managed service that provides private, high-speed Layer 3 connections between AWS and other cloud providers. It supports Google Cloud first, with Azure planned for 2026, and eliminates VPN tunnels, colocation cross-connects, and third-party providers.

Optimizing upload performance

Amazon S3 increased the maximum object size from 5 TB to 50 TB in December 2025. Objects larger than 5 GB require multipart upload, and we recommend multipart upload for any object larger than 100 MB.

Follow these best practices to optimize upload performance.

  • Use multipart upload, with parts from 5 MB to 5 GB, up to 10,000 parts, uploaded in parallel.

  • Combine multipart upload with Amazon S3 Transfer Acceleration.

  • Use AWS CRT-based SDKs (AWS Common Runtime) for higher performance.

  • Tune the part size. Larger parts reduce per-request overhead, and smaller parts increase parallelism.

  • Use S3 Express One Zone for latency-sensitive staging.

AWS Snow Family

The AWS Snow Family has been significantly reduced in scope. The following table summarizes the current status of each device.

AWS Snow Family device status
Device Status
AWS Snowmobile Retired (March 2024)
AWS Snowcone (HDD and SSD) Discontinued (November 2024)
Previous-generation Snowball Edge devices Discontinued (November 2024)
AWS Snowball Edge (latest generation) Closed to new customers (November 2025)

Existing Snowball Edge customers can continue to use the service. AWS directs new customers to AWS DataSync for online transfers, AWS Data Transfer Terminal for physical transfers, AWS Partner solutions, and AWS Outposts for edge computing.

Note

Choose a transfer method by total data volume, available bandwidth, deadline, and whether the transfer is one-time or ongoing. Prefer online methods such as AWS DataSync Enhanced mode, Amazon S3 Transfer Acceleration, and Direct Connect when the data fits the timeline. Use AWS Data Transfer Terminal when network constraints make online transfer impractical. For sustained transfers above 10 Gbps, Direct Connect with dedicated 100 or 400 Gbps connections provides the best cost-performance.

Apache Iceberg on EMR — table format migration

Apache Iceberg is an open table format for large analytic datasets that provides ACID transactions, schema evolution, hidden partitioning, and time travel. Amazon EMR provides native, optimized support for Iceberg across Apache Spark, Apache Hive, Trino, and Apache Flink. Iceberg has been supported since EMR 6.5.0, and EMR 7.x bundles Iceberg 1.10.0 with full integration with the AWS Glue Data Catalog and Amazon S3 Tables.

On-premises Hive-style tables that use raw Parquet or ORC have several limitations. Partition evolution requires rewriting all data, schema changes require reprocessing, and the tables provide no ACID transactions and no time travel. Iceberg solves all of these.

To configure Iceberg on EMR, enable it in the cluster configuration.

[ { "Classification": "iceberg-defaults", "Properties": { "iceberg.enabled": "true" } } ]

Then configure the Spark session to use the AWS Glue Data Catalog as the Iceberg catalog.

spark = SparkSession.builder \ .config("spark.sql.catalog.glue_catalog", "org.apache.iceberg.spark.SparkCatalog") \ .config("spark.sql.catalog.glue_catalog.catalog-impl", "org.apache.iceberg.aws.glue.GlueCatalog") \ .config("spark.sql.catalog.glue_catalog.warehouse", "s3://data-lake/warehouse/") \ .config("spark.sql.catalog.glue_catalog.io-impl", "org.apache.iceberg.aws.s3.S3FileIO") \ .getOrCreate()

Iceberg supports three migration patterns.

Pattern 1 — Lift and shift to Iceberg

Read existing Hive or Parquet tables and write them as new Iceberg tables.

CREATE TABLE glue_catalog.analytics.events USING iceberg PARTITIONED BY (days(event_timestamp)) AS SELECT * FROM parquet.`s3://raw-data/events/`;

Pattern 2 — In-place migration (Hive to Iceberg)

Convert a table without rewriting data. The migrate procedure creates Iceberg metadata that points to existing Parquet, Avro, or ORC files in place.

CALL glue_catalog.system.migrate(table => 'hive_db.events');

The existing files are registered with no data movement, and the table then supports all Iceberg features. To leave the original Hive table intact, use the snapshot procedure instead.

CALL glue_catalog.system.snapshot( source_table => 'hive_db.events', table => 'glue_catalog.analytics.events_iceberg');

Pattern 3 — Shadow migration (zero-downtime)

Run a shadow migration to cut over with no downtime.

  1. Create an Iceberg table alongside the existing Hive table.

  2. Dual-write to both tables during the migration window.

  3. Validate that the Iceberg table matches the Hive table through row counts, checksums, and sample queries.

  4. Cut over readers to the Iceberg table.

  5. Decommission the Hive table.

The following Iceberg features are relevant to migration:

  • Hidden partitioning — Define transforms such as year, month, day, hour, bucket, and truncate without a specific directory layout. For more information, see Apache Iceberg hidden partitioning.

  • Schema evolution — Add, drop, rename, and reorder columns, and widen types, without rewriting data. These are metadata-only operations.

  • Time travel — Query a table as of a snapshot or timestamp, which is useful for migration validation.

  • Row-level operations — Use MERGE INTO, UPDATE, and DELETE for CDC with format version 2 equality and position deletes.

Amazon EMR adds the following optimizations:

  • The EMR runtime for Apache Spark includes optimized Iceberg integration with vectorized reads.

  • EMR 7.x bundles Iceberg 1.5 and later with native S3 Tables catalog support, including automatic compaction and snapshot management.

  • The EMRFS S3-optimized committer is the default for Parquet writes on EMR 6.x and 7.x prior to 7.10, and starting with EMR 7.10, S3A replaces EMRFS. For Iceberg tables, Iceberg uses its own commit protocol, so the S3 committer is not needed.

Iceberg version by EMR release
EMR release Iceberg version Spark version
emr-7.12.0 1.10.0-amzn-0 3.5.x
emr-7.5.0 1.6.1-amzn-1 3.5.x
emr-7.0.0 1.4.2-amzn-0 3.5.x
emr-6.15.0 1.4.0-amzn-0 3.4.x
emr-6.10.0 1.1.0-amzn-0 3.3.x
emr-6.5.0 0.12.0 3.2.x

The -amzn-N suffix indicates Amazon-specific patches to upstream Apache Iceberg.

Iceberg defines the following format versions:

  • v1 — The original specification, covering types, partitioning, schema evolution, and snapshot isolation.

  • v2 — Adds row-level deletes (equality and position) and sequence numbers. This is the default and most widely used production version.

  • v3 — Finalized in Apache Iceberg 1.6.0. It adds nanosecond timestamp types, default column values, and a binary variant type, and you must explicitly opt in through the format-version table property.

CDC patterns that require row-level deletes need format version 2 or later.

For EMR on Amazon EKS, Iceberg is supported from EMR 6.6.0 and later. You use the same Spark catalog properties through spark-submit or application configuration overrides.

Note

Adopt Apache Iceberg as the target table format. Use the in-place migrate() procedure to convert Hive tables without rewriting. For new tables, define hidden partition transforms at creation time. For zero-downtime production migrations, use the shadow migration pattern with dual-write and validation before cutover.

Running data migration workloads on AWS

After data lands in Amazon S3, you typically transform, repartition, and optimize it. These jobs, which include format conversion, CDC merges, streaming ingestion, and validation, can run on several AWS compute engines.

Consider the following compute engine options:

  • EMR Serverless — Best for most migration workloads. It requires no infrastructure, scales automatically, and charges per vCPU-second.

  • EMR on Amazon EC2 — Best for long-running migrations, workloads that require HDFS or custom AMIs, and persistent clusters with notebooks.

  • EMR on Amazon EKS — Best for teams that already run Kubernetes and want to consolidate compute with rapid pod-based job submission.

  • AWS Glue — Best for catalog-centric ETL, visual job authoring, and a managed experience with minimal Spark configuration.

We recommend that you start with EMR Serverless for data migration workloads. It requires no upfront infrastructure decisions, scales automatically with the variable demand typical of migrations, and charges only for the compute you consume. Move to EMR on Amazon EC2 or EMR on Amazon EKS only if you need persistent clusters, custom environments, or Kubernetes-native orchestration. The same Spark scripts run on any engine with only deployment-specific changes.

Zero-ETL and federated query — reducing data movement

A key principle is to move compute to data rather than data to compute. This approach can simplify or accelerate migration by reducing the data you physically move to Amazon S3.

Amazon Athena Federated Query

Amazon Athena Federated Query runs SQL across Amazon S3, relational databases, NoSQL stores, and on-premises systems from a single Athena query. It uses AWS Lambda-based data source connectors. Athena pushes filter conditions to the connector to minimize transfer, and large result sets spill to a configured Amazon S3 bucket.

Athena provides more than 30 prebuilt connectors, grouped as follows.

  • AWS native — Amazon DynamoDB, Amazon Redshift, CloudWatch Logs, CloudWatch metrics, Amazon Neptune, Amazon OpenSearch Service, Amazon Timestream, Amazon MSK, and Amazon DocumentDB.

  • Relational databases through JDBC — MySQL, PostgreSQL, SQL Server, Oracle, Db2, SAP HANA, Teradata, and Vertica.

  • Hadoop ecosystem — HBase, Cloudera Hive, Cloudera Impala, and Hortonworks.

  • Cloud and SaaS — Snowflake, Google BigQuery, Google Cloud Storage, Azure Data Lake Storage Gen2, and Azure Synapse.

  • Other — Apache Kafka and Redis.

For sources without prebuilt connectors, build custom connectors with the open-source Athena Query Federation SDK (Java). Deploy the connector Lambda function in a VPC with on-premises connectivity through Direct Connect or VPN.

Federated query supports the following migration patterns:

  • Query on-premises data from AWS without moving it first.

  • Validate migrated data by joining the on-premises source with the Amazon S3 target.

  • Run analytics on partially migrated datasets while you progressively move tables to Amazon S3 and Iceberg.

The following cross-source completeness check finds rows present on one side only:

FULL OUTER JOIN s3_iceberg.db.orders i ON o.order_id = i.order_id WHERE o.order_id IS NULL OR i.order_id IS NULL;

Federated query has the following limitations:

  • Each Lambda invocation has a 15-minute maximum, so large scans on slow sources can time out.

  • Account-level Lambda concurrency limits apply.

  • Federated queries are significantly slower than native Amazon S3 queries, so they are not suited to latency-sensitive dashboards on large datasets.

  • Not all SQL pushes down. Complex aggregations and window functions might execute in Athena after retrieval.

  • You pay for Lambda invocations, Athena data scanned, and Amazon S3 spill.

Amazon Athena OPTIMIZE and VACUUM for Iceberg tables

Amazon Athena provides two SQL commands that maintain Iceberg tables without an EMR cluster. OPTIMIZE supports the BIN_PACK strategy only, and its output targets the write.target-file-size-bytes property (default approximately 128 MB). For sort-order compaction, use rewrite_data_files on EMR Spark. VACUUM retention is controlled by the vacuum_max_snapshot_age_seconds property (default 5 days, or 432,000 seconds).

These commands are best for routine maintenance on small-to-medium Iceberg tables. For very large tables of terabytes or more, or for sort-order compaction, use EMR Spark with rewrite_data_files and expire_snapshots.

Amazon Redshift Zero-ETL with Aurora

Amazon Redshift zero-ETL integration with Amazon Aurora eliminates building ETL pipelines for OLTP-to-analytics movement. You create an integration between an Aurora DB cluster as the source and an Amazon Redshift warehouse as the target. An initial full snapshot replicates, followed by continuous, near-real-time replication. Aurora MySQL uses binlog CDC, and Aurora PostgreSQL uses logical replication. AWS manages pipeline health, monitoring, and recovery.

Aurora MySQL zero-ETL became generally available in November 2023 and requires Aurora MySQL 3.05.2 or later. Aurora PostgreSQL became generally available in early 2024 and requires Aurora PostgreSQL 16.4 or later. The Amazon Redshift target must use RA3 node types or Redshift Serverless, with encryption enabled and case sensitivity turned on.

Zero-ETL integration has the following key limitations:

  • Tables without primary keys are not replicated.

  • The source and target must be in the same Region.

  • The destination Amazon Redshift database is read-only, so you cannot create tables, views, or materialized views in it.

  • Data is replicated as-is with no transformations. Transform the data after replication with Amazon Redshift SQL.

  • An ALTER TABLE on the source causes a full table resynchronization, and the table is unavailable during it.

  • You can create a maximum of 50 integrations per Amazon Redshift warehouse and 5 per source cluster.

During migration, zero-ETL enables operational analytics on transactional data without custom CDC pipelines. You can combine zero-ETL-replicated data in Amazon Redshift with Iceberg tables in Amazon S3, because Amazon Redshift can query both through Redshift Spectrum or data sharing.

EMR on Amazon EKS

EMR on Amazon EKS runs Apache Spark on an existing Amazon EKS cluster without dedicated EMR clusters. You register a Kubernetes namespace with Amazon EMR to create a virtual cluster with no idle resources. You submit Spark jobs through the Amazon EMR API, and EMR schedules driver and executor pods in the registered namespace using Amazon EKS compute. Pods terminate after completion, so there is no persistent infrastructure between jobs.

EMR on Amazon EKS supports EMR releases from 5.32.0 (Spark 2.4.x) through 7.12.0 (Spark 3.5.6, Iceberg 1.10.0), and Iceberg is supported from EMR 6.6.0 and later. EMR on Amazon EKS is S3-native, with no HDFS cluster attached, so Spark reads from and writes to Amazon S3 directly. This aligns with HDFS-to-S3 migration and reduces the migration surface for teams already invested in Amazon EKS.

Use EMR on Amazon EKS when you already operate Kubernetes and want to consolidate compute, need rapid job submission (pods launch in seconds, compared with 5 to 10 minutes for EMR cluster bootstrap), or require multi-tenant isolation through namespaces. Use EMR on Amazon EC2 or EMR Serverless when you want a fully managed platform without Kubernetes overhead, need frameworks beyond Spark such as Hive, Presto, Trino, HBase, or Flink, or require interactive notebooks.

Recommended migration phasing with federated query

Use the following phased approach that combines federated query with progressive migration:

  1. Phase 1 — Assess — Use Amazon Athena Federated Query to query on-premises sources from AWS with no data movement. Validate query patterns, identify hot datasets, and estimate volumes.

  2. Phase 2 — Pilot — Migrate hot datasets to Amazon S3 or S3 Tables. Continue querying on-premises through federation for the rest, and run cross-source validation queries.

  3. Phase 3 — Migrate — Move the remaining datasets to Amazon S3. Cut over ETL jobs from on-premises Hadoop to EMR on Amazon EC2, EMR on Amazon EKS, or EMR Serverless, and convert tables to Iceberg through in-place migration.

  4. Phase 4 — Optimize — Convert the remaining tables to Iceberg. Enable S3 Tables auto-compaction or scheduled Iceberg maintenance. Optimize storage tiering with S3 Intelligent-Tiering and Amazon Glacier Instant Retrieval. Remove federated query connectors as on-premises sources are decommissioned.

Note

Amazon Athena Federated Query and Aurora zero-ETL are complementary. Use federated query for ad hoc cross-source validation during migration, and use zero-ETL for ongoing operational analytics on relational data after migration. For Spark workloads, EMR on Amazon EKS provides an S3-native compute platform that aligns with HDFS-to-S3 migration.

Data migration validation and observability

Data migration is only successful when the target data is complete, accurate, and intact. Validation failures discovered after cutover cause incorrect analytics, compliance violations, or costly re-migration. Observability maintains real-time visibility into progress, throughput, and errors. For broader data quality concepts and general testing, see Testing and Validation.

Data integrity during transfer

Amazon S3 provides default integrity protections. As of December 2024, the latest AWS SDKs automatically calculate CRC-based checksums (CRC64NVME by default) during upload, and Amazon S3 independently verifies them. Amazon S3 supports six algorithms: CRC64NVME, CRC32, CRC32C, SHA-1, SHA-256, and MD5. For multipart uploads, Amazon S3 stores a whole-object CRC-based checksum in metadata.

S3 Batch Operations Compute Checksum, launched in August 2025, calculates checksums for up to billions of objects at rest without downloading or restoring them, and produces a consolidated integrity report. You provide a manifest or bucket filters. This is useful for verifying large-scale migrations after transfer.

AWS DataSync performs built-in integrity verification on every transfer. It checksums data at the source, transfers it, and compares it at the destination. Task reports give per-file verification status, and Enhanced mode adds structured JSON logs.

Note

For critical migrations, enable full verification in AWS DataSync (the default) and retain task reports in Amazon S3 for audit. After transfer, use S3 Batch Operations Compute Checksum for an independent integrity report that you compare against source-side checksums.

Data parity validation

Data parity validation confirms that content, structure, and completeness match the source.

AWS Glue Data Quality

AWS Glue Data Quality is serverless and measures and monitors quality using the Data Quality Definition Language (DQDL). It provides cross-dataset comparison through rules such as DatasetMatch and AggregateMatch to verify row counts, column sums, and value distributions. It recommends rules automatically, validates inline in ETL jobs before writing to the target, and provides ML-based anomaly detection. DQDL rules relevant to parity include RowCount, ColumnCount, Completeness, Uniqueness, SchemaMatch, and aggregate comparisons. Results can trigger Amazon CloudWatch alarms or halt pipelines.

AWS DMS validation

AWS DMS provides built-in data validation that compares the source and target row-by-row after a full load or during CDC, and it supports Amazon S3 targets. It identifies missing rows, extra rows, and mismatches, and it supports validation-only tasks for periodic re-verification or post-cutover confirmation. Data resync re-reads affected records and corrects the target.

Custom validation with Apache Spark

For large-scale migrations where built-in tools are insufficient, run custom validation on EMR Serverless.

  • Row count comparison grouped by partition keys.

  • Column-level checksums, such as hash aggregates like MD5(CONCAT(col1, col2, ...)).

  • Schema validation of names, types, and nullability.

  • Statistical profiling of minimum, maximum, average, and distinct values.

Apache Griffin is an open-source data quality framework that supports configuration-driven batch and streaming validation at scale on Amazon EMR.

Monitoring migration progress

A comprehensive observability strategy combines metrics, logs, and alerts across services into a unified view. Amazon CloudWatch is the central hub, collecting the following:

  • AWS DataSync — Bytes transferred, files transferred, throughput, and task status.

  • AWS DMS — CDC latency, rows migrated, validation state (pending, validated, or mismatched), and replication instance CPU and memory.

  • Amazon S3 — Request counts, bytes uploaded, 4xx and 5xx error rates, and first-byte latency.

Build an Amazon CloudWatch dashboard that consolidates these metrics into a single migration-progress view, with widgets for data volume transferred, current throughput, error rates, and validation status. Use Amazon CloudWatch alarms for throughput drops, rising error rates, or stalled transfers. Amazon EventBridge enables event-driven automation, such as triggering notifications or remediation when AWS DataSync tasks complete, AWS DMS validation finds mismatches, or EMR jobs fail. AWS CloudTrail provides an audit trail of all API calls during migration.

Note

Establish validation gates at each pipeline stage. Verify integrity immediately after transfer with checksums, validate parity after transformation with AWS Glue Data Quality or custom Spark, and confirm completeness before cutover with row counts and aggregate comparisons. Automate these gates with AWS Step Functions or Apache Airflow so that data does not advance until validation passes.