Starting Your Journey
Migrating from an on-premises Hadoop platform to Amazon EMR is a significant undertaking that benefits from deliberate planning. This chapter helps you make foundational decisions before any data moves: choosing a migration approach (lift-and-shift, re-platform, or re-architect), identifying which workloads to prototype first, assembling the right team, and establishing best practices for the migration lifecycle.
Migration approaches
Migration timeline framework
Every migration is unique, but this framework helps estimate effort and duration based on environment complexity. Use it as a planning starting point.
- Phase 1: Assessment and planning (4–8 weeks)
-
-
Inventory on-premises workloads, data volumes, and dependencies.
-
Build a total cost of ownership (TCO) comparison and business case.
-
Select 3–5 pilot workloads.
-
Design the target architecture.
-
Establish success criteria and a rollback plan.
-
- Phase 2: Foundation and pilot (6–10 weeks)
-
-
Set up AWS networking (VPC, Direct Connect).
-
Configure Amazon EMR security (IAM, Lake Formation, encryption).
-
Migrate pilot workloads end-to-end.
-
Validate data integrity and performance.
-
Document lessons learned.
-
- Phase 3: Bulk migration (12–24 weeks)
-
-
Migrate data in staged waves by priority and volume.
-
Migrate workloads grouped by dependency and criticality.
-
Run parallel validation (same inputs, compare outputs).
-
Migrate orchestration (Oozie to Airflow).
-
Train the operations team.
-
- Phase 4: Optimization and cutover (4–8 weeks)
-
-
Performance tuning (right-sizing, Spot, caching).
-
Cost optimization (storage tiering, instance selection).
-
Final data synchronization and cutover.
-
Decommission on-premises clusters.
-
| Environment | Workloads | Data Volume | Duration | Team Size |
|---|---|---|---|---|
| Small | <50 jobs | <10 TB | 3–6 months | 2–4 engineers |
| Medium | 50–200 jobs | 10–100 TB | 6–12 months | 4–8 engineers |
| Large | 200–500 jobs | 100 TB-1 PB | 9–18 months | 8–15 engineers |
| Very Large | 500+ jobs | >1 PB | 12–24 months | 15+ engineers + ProServe |
When starting, first decide how to approach migration. One approach is to re-architect to maximize cloud benefits. Another, lift and shift, takes your existing architecture and does a straight migration. A third, hybrid, blends the two.
Lift and shift is usually simpler with less risk and is better under tight deadlines (for example, an expiring data-center lease), but it is not always the most cost-effective, and existing architecture might not map cleanly to the cloud. Re-architecture unlocks cost and efficiency optimization, the latest software, better integration with native cloud tools, and lower operational burden.
For more information about choosing an approach, see the e-book of cloud best practices for your enterprise.
Re-architecting
Re-architecting is ideal when your primary goal is to maximize long-term cloud benefits. It requires upfront investment (research, planning, experimentation, education, implementation, and deployment), but it delivers the highest return through reduced hardware and storage costs, lower operational overhead, and greater flexibility.
Re-architecting provides the following benefits:
-
Independent scaling. Decoupled storage and compute scale independently.
-
Access to the latest software.
-
Faster experimentation through on-demand provisioning.
-
Flexible scaling options (vertical and horizontal).
-
Reduced operational burden. Managed services handle node replacement, upgrades, and patching, and clusters can be transient.
-
Enhanced data accessibility. A data lake on Amazon S3 integrates with AWS Glue and Amazon Athena.
-
Transient compute resources. You pay only for what you use.
Follow these best practices for re-architecting:
-
Leverage this guide. Review the reference architectures and migration approaches.
-
Engage AWS early. Reach out to your AWS representative to develop a roadmap.
Lift and shift
Lift and shift moves existing applications with minimal modification. It prioritizes speed and simplicity, and is preferred when time is critical, deadlines are firm, or ambiguity must be minimized (for example, an expiring lease or license).
Lift and shift provides the following benefits:
-
Fewer changes required.
-
Lower risk.
-
Faster time to market.
Trade-offs to consider
Lift and shift offers speed and simplicity, but your on-premises architecture might not map cleanly to cloud equivalents, and without redesign you might not realize full cost and operational efficiencies.
Best practices for lift and shift
-
Use Amazon S3 for storage instead of HDFS. This can reduce storage costs up to three times. HDFS replicates data at least twice, and Amazon S3 lets compute scale independently. For more information, see the "Using Amazon S3 as the central data repository" guidance in Data Migration.
-
Research application version changes. Amazon EMR bundles multiple application versions in an AMI, so review the changes and known issues.
-
Review and tune cluster configuration defaults.
-
Validate your resource scheduler. Amazon EMR uses the Apache Hadoop Capacity Scheduler by default.
Hybrid architecture
A hybrid architecture uses aspects of both approaches. You lift and shift existing applications for a quick migration and re-architect new applications. This approach lets teams experiment and gain cloud experience.
Prototyping
The most effective way to accelerate learning is hands-on prototyping with real-world data early, which surfaces unknowns before production. We recommend that you make prototyping mandatory.
Challenge the following common assumptions:
-
A particular data format is best. Columnar formats like Parquet and ORC outperform row formats for most analytics, and open table formats like Iceberg, Delta Lake, and Hudi add ACID transactions, schema evolution, and time travel. Validate early with representative data.
-
A particular application is more performant. Changing applications later is expensive.
-
A particular instance type is most cost-effective. For example, Graviton or C-series instances with spill-to-disk can beat R-series instances, and this is easier to change later.
-
An on-premises application works identically in the cloud. Many factors differ, so run varied jobs with real production data.
Cloud environment factors vary, such as Amazon S3 traffic by time of day and caching, so prototyping reduces surprises.
Follow these best practices for prototyping:
-
Prioritize the riskiest assumptions.
-
Start early.
-
Match your prototype environment to production.
-
Define clear goals upfront.
-
Make tests deterministic and repeatable.
-
Validate setup, environment, and results with peers. For example, repeated downloads of the same Amazon S3 object can cause caching and skew results.
-
Run tests multiple times to account for variability. Look at P50, P90, P99, and P100.
-
Document and review results.
-
Don't make assumptions.
-
Invest appropriately in prototyping.
-
Seek help when needed, such as from forums, AWS Partners, and your account team.
Choosing a team
Choose a project team to research, design, implement, and maintain the new system. A person can play multiple roles.
Staff the following roles:
-
A project leader with enough technical background to make decisions.
-
A data engineer strong in Apache Hadoop and the technologies being migrated.
-
An infrastructure engineer versed in AWS provisioning automation (CloudFormation, Terraform) and test automation and CI/CD.
-
A security engineer who can map company security requirements to AWS features.
-
A group of quick-learning engineers.
All members must do the following:
-
Have an open mind and think differently, because the cloud requires a paradigm shift.
-
Dive deep into the underlying frameworks and issues.
-
Align on the project's mission and direction.
General best practices for migration
Migrating big data and analytics workloads involves careful decision making. The following are general best practices.
Common migration pitfalls
These pitfalls are drawn from hundreds of real-world Amazon EMR migrations. Avoiding them early saves weeks of rework.
-
Assuming Amazon S3 behaves like HDFS. Amazon S3 is an object store: it has no atomic rename, so use S3-optimized committers; no append, so write new files; no real directories, so it is prefix-based; and slower listing at scale, so use Iceberg metadata. For more information, see Data Migration.
-
Migrating everything at once. Start with non-critical workloads, validate end-to-end, and maintain parallel running.
-
Ignoring Spark version differences. Spark 2.4 to 3.5/4.x introduces API deprecations and behavior changes. Use the Spark Upgrade Agent (see Spark Agents).
-
Over-sizing clusters. On-premises clusters are over-provisioned. On Amazon EMR, start small and use Managed Scaling. A 200-node on-premises cluster often becomes a 20-node Amazon EMR cluster with auto-scaling.
-
Not separating storage from compute. Use Amazon S3 as primary storage from day one.
-
Copying security patterns instead of adopting cloud-native ones. Adopt IAM Identity Center with Trusted Identity Propagation (TIP), Lake Formation fine-grained access control (FGAC), and Amazon S3 Access Grants.
-
Skipping data validation. Compare row counts, checksums, and schema, and run regression tests.
-
Not planning for hybrid coexistence. Use a shared metastore or synchronized catalogs, network connectivity, dual-write, and gradual traffic shifting.
-
Underestimating orchestration changes. Oozie to Airflow is not one-to-one, so budget time separately.
-
Forgetting cost governance from day one. Tag clusters, set billing alarms, set Managed Scaling maximum limits, and review Spot weekly.
Use Amazon S3 as your central data repository
Amazon S3 offers high durability and availability and lifecycle tiering. It decouples compute from storage and reduces HDFS replication cost. Centralize structured and unstructured data to support big data processing and ETL, real-time analytics, ML and AI, and interactive querying through Amazon Athena, Amazon Redshift Spectrum, or Amazon EMR. For more information, see Data Migration.
Consider the right AWS service for your workload
Amazon EMR offers flexibility, but it has an operational cost, so evaluate managed alternatives.
- Amazon EMR Serverless
-
Run Spark and Hive without managing clusters. It auto-provisions, scales, and terminates, you pay only for the compute and memory used, it scales instantly, and it provides faster time-to-value.
- Amazon S3 Tables
-
Fully managed, high-performance storage for tabular data on Apache Iceberg. It provides up to 3x faster query performance and up to 10x higher transactions per second compared to self-managed Iceberg, with automatic maintenance like compaction and snapshot management. It is accessible by AWS Glue, Amazon Athena, and Amazon Redshift.
- Amazon SageMaker Unified Studio
-
A single unified environment across data engineering, analytics, and ML. It provides a unified experience across workload types, native integration with Amazon EMR, Amazon EMR Serverless, Amazon EMR on EKS, Amazon Athena, AWS Glue, and Amazon Redshift, built-in data discovery and governance through Amazon DataZone, collaborative development, accelerated ML migration, and simplified access management.
- Amazon Athena
-
Serverless interactive SQL on Amazon S3, with no infrastructure.
- AWS Glue
-
Serverless Spark ETL for data integration.
- Amazon Redshift
-
High-performance data warehousing at scale.
Optimize cluster usage and costs
Assign workloads to dedicated clusters by usage pattern on Amazon EMR on EC2. Send batch jobs such as ETL, aggregations, and ML to transient clusters that terminate on completion, and send interactive queries to long-running clusters sized for responsiveness. Reduce compute cost with Reserved Instances for predictable baselines and Spot Instances for variable or fault-tolerant workloads.
Amazon EMR Managed Scaling
Amazon EMR Managed Scaling continuously monitors demand and scales core and task nodes automatically. Set minimum and maximum boundaries, and right-size by selecting appropriate Amazon EC2 instance types and node counts. For more information, see Cost Estimation and Optimization.
Implement automation and CI/CD practices
Automate Amazon EMR cluster provisioning along with IAM roles and security groups. Treat infrastructure as code. This enables provisioning in another Availability Zone or Region. For more information, see Operational Excellence.
Prioritize security and compliance early
Involve security and compliance engineers early. Use IAM, AWS KMS, and Amazon EMR Security Configurations. Encrypt data at rest and in transit, and enable authentication and authorization. For more information, see Securing your Resources on Amazon EMR.