# Amazon EMR

**Amazon EMR**（原名 Amazon Elastic MapReduce）是[亚马逊云科技](https://www.edgepedia.org/zh/amazon-web-services)（Amazon Web Services）提供的托管集群平台，可简化在 AWS 上运行 [Apache Hadoop](https://www.edgepedia.org/zh/apache-hadoop)、[Apache Spark](https://www.edgepedia.org/zh/apache-spark) 等大数据框架的流程，以便处理和分析海量数据<sup>[1](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-what-is-emr.html)</sup>。它为 Apache Spark、Trino、Apache Flink 和 Apache Hive 提供性能优化的运行时，并允许用户将数据转换并移入、移出 Amazon S3、Amazon DynamoDB 等其他 AWS 数据存储<sup>[1](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-what-is-emr.html)</sup><sup> • </sup><sup>[2](https://wiki.licenseware.io/products/amazon-web-services/amazon-emr/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 产品类型 | 用于在 AWS 上运行大数据框架（Apache Hadoop、Apache Spark、Hive、Presto、Flink、Trino）的托管集群平台<sup>[1](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-what-is-emr.html)</sup> |
| 发布 | 2009年4月2日公布测试版，使用运行在 Amazon EC2 和 Amazon S3 上的托管 Hadoop<sup>[3](https://aws.amazon.com/about-aws/whats-new/2009/04/02/announcing-amazon-elastic-mapreduce/)</sup> |
| 部署选项 | EMR Serverless、EMR on Amazon EC2 和 EMR on Amazon EKS<sup>[4](https://aws.amazon.com/emr/)</sup> |
| 计费 | 在 EC2、Outposts、EKS 和 Serverless 上的 EMR 服务按秒计费，最低一分钟<sup>[5](https://aws.amazon.com/emr/pricing/)</sup> |
| 发布模式 | 按版本发布；共列出73个版本，最新为 emr-spark-8.1（长期支持版），发布于2026年9月8日<sup>[2](https://wiki.licenseware.io/products/amazon-web-services/amazon-emr/)</sup> |
| 支持阶段 | 桥接支持、扩展支持、支持终止、生命周期终止；长期支持版本可获得36个月支持<sup>[6](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-standard-support.html)</sup> |
| 托管扩缩容 | 每5至10秒评估一次集群指标；支持基于 YARN 的应用，如 Spark、Hadoop、Hive 和 Flink<sup>[7](https://docs.aws.amazon.com/us_en/emr/latest/ManagementGuide/emr-scale-on-demand.html)</sup> |
| 性能 | AWS 表示，EMR 运行 Apache Spark 和 Iceberg 读取作业比开源版本快4.5倍，写入作业快2倍以上<sup>[4](https://aws.amazon.com/emr/)</sup> |

## 历史

AWS 于2009年4月2日宣布 Amazon Elastic MapReduce 测试版上线，作为一种 Web 服务，面向企业、研究人员、数据分析师和开发者，利用运行在 Amazon EC2 和 Amazon S3 上的托管 Hadoop 框架，经济高效地处理海量数据<sup>[3](https://aws.amazon.com/about-aws/whats-new/2009/04/02/announcing-amazon-elastic-mapreduce/)</sup>。2009年10月1日，该服务又加入了对 Apache Hive 的支持，后者是一个开源数据仓库与分析软件包，使用基于 SQL 的语言进行操作<sup>[8](https://aws.amazon.com/about-aws/whats-new/2009/10/01/amazon-elastic-mapreduce-now-supports-apache-hive/)</sup>。

在服务发展后期，又出现了两种部署选项。从5.32.0和6.2.0版本开始，Amazon EMR on EKS 成为可能，用户可以在 Amazon EKS [Kubernetes](https://www.edgepedia.org/zh/kubernetes) 集群上按需运行 Apache Spark 作业<sup>[9](https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/emr-eks-releases.html)</sup>。Amazon EMR Serverless 在 re:Invent 2021 上进入预览，并于2022年6月1日在美国东部（弗吉尼亚北部）、美国西部（俄勒冈）、亚太地区（东京）和欧洲（爱尔兰）正式可用<sup>[10](https://aws.amazon.com/blogs/big-data/announcing-amazon-emr-serverless-preview-run-big-data-applications-without-managing-servers/)</sup><sup> • </sup><sup>[11](https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-emr-serverless-generally-available/)</sup>。

## 架构

Amazon EMR 的服务架构由四层组成：存储、集群资源管理、数据处理框架，以及应用与程序<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。

存储层包括 Hadoop 分布式文件系统（HDFS），它将数据分布在集群实例上并保存多个副本，以防实例故障，集群终止时数据会被回收；EMR 文件系统（EMRFS）扩展了 Hadoop，使集群可以直接访问 Amazon S3 中的数据；从7.10.0版本起，S3A 文件系统成为所有 S3 文件 URI 协议（s3://、s3a://、s3n://）的默认 S3 连接器；以及 EC2 实例存储卷上的本地文件系统，仅在实例生命周期内持久存在<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。实践中，Amazon S3 最常用于存储输入和输出数据，中间结果则保存在 HDFS 中<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。

资源管理层负责在集群中调度作业。默认情况下，Amazon EMR 使用 YARN（Yet Another Resource Negotiator），它引入于 Apache Hadoop 2.0，用于集中管理多个框架的资源；部分提供的应用使用自己的集群管理而非 YARN<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。由于任务节点通常运行在可随时终止的竞价实例上，Amazon EMR 使用 YARN 节点标签将应用主进程调度为仅在核心节点上运行，这一行为从5.19.0版本起内置<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。

主要处理框架是 Hadoop MapReduce 和 Apache Spark，后者使用有向无环图制定执行计划并进行内存缓存，可通过 EMRFS 访问 S3 数据<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。在应用层，用户通过 Hive、Pig、Spark SQL、MLlib 和 GraphX 等库和语言进行交互<sup>[12](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)</sup>。集群包含一个或三个主节点；从5.23版本起，拥有三个主节点的集群支持 YARN 资源管理器、HDFS 名称节点、Spark、Hive 和 Ganglia 等应用的高可用性<sup>[13](https://aws.amazon.com/emr/faqs/?das=sec&sec=prep)</sup>。

## 部署选项

**EMR on EC2** 提供对集群配置的控制，支持长期运行的集群，提供多种 EC2 实例类型，并支持按需实例、预留实例和竞价实例<sup>[4](https://aws.amazon.com/emr/)</sup><sup> • </sup><sup>[14](https://www.techtarget.com/searchaws/definition/Amazon-Elastic-MapReduce-Amazon-EMR)</sup>。

**EMR on EKS** 在 Amazon EKS 集群上按需提交 Apache Spark 作业，无需预置 EMR 集群，因此分析工作负载可以与其他应用共享同一个 Kubernetes 集群，提高资源利用率<sup>[4](https://aws.amazon.com/emr/)</sup>。版本标签的形式为 emr-x.x.x-latest 或 emr-x.x.x-yyyymmdd，其中 -latest 后缀确保版本始终包含最新的安全更新<sup>[9](https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/emr-eks-releases.html)</sup>。

**EMR Serverless** 让用户无需配置、管理或扩缩集群即可运行 Spark 和 Hive 应用。它根据作业需要自动预置计算和内存资源；例如，一个 Spark 作业先需要2个执行器，然后10个，再然后5个，就会恰好获得相应容量，客户只需为使用的资源付费<sup>[11](https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-emr-serverless-generally-available/)</sup>。第四种选项 Amazon EMR on AWS Outposts 在组织自己的数据中心内运行 EMR<sup>[14](https://www.techtarget.com/searchaws/definition/Amazon-Elastic-MapReduce-Amazon-EMR)</sup>。

## 扩缩容

Amazon EMR 提供两种自动扩缩容方式。托管扩缩容在5.30.0及以上版本（6.0.0除外）可用，每5至10秒评估一次指标，以做出更精确的扩缩容决策，为整个集群配置扩缩容限制，并且仅支持基于 YARN 的应用，如 Spark、Hadoop、Hive 和 Flink，不支持 Presto 或 HBase<sup>[7](https://docs.aws.amazon.com/us_en/emr/latest/ManagementGuide/emr-scale-on-demand.html)</sup>。自定义自动扩缩容在4.0.0及以上版本可用，允许用户控制扩缩容指标、定义支持哪些应用，并采取自定义扩缩容操作，例如在五分钟内添加多个节点，但仅以五分钟为间隔进行评估<sup>[7](https://docs.aws.amazon.com/us_en/emr/latest/ManagementGuide/emr-scale-on-demand.html)</sup>。

集群始终包含一个或三个主节点，这些主节点在初始配置后无法扩缩容；只有核心节点和任务节点可以扩缩容<sup>[7](https://docs.aws.amazon.com/us_en/emr/latest/ManagementGuide/emr-scale-on-demand.html)</sup>。对于 Spark 工作负载，AWS 建议在托管扩缩容下保持 Spark 动态分配（spark.dynamicAllocation.enabled）启用，因为禁用它可能导致集群扩容超出工作负载所需<sup>[15](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-managed-scaling.html)</sup>。

## 定价

Amazon EMR 按秒计费，最低一分钟；AWS 举例说明，一个10节点集群运行10小时与一个100节点集群运行1小时费用相同<sup>[5](https://aws.amazon.com/emr/pricing/)</sup>。在 EC2 上，EMR 费用叠加在底层 EC2 实例和 EBS 卷费用之上，可选择按需实例、预留实例、容量节省计划和竞价实例<sup>[5](https://aws.amazon.com/emr/pricing/)</sup>。在 EKS 上，EMR 费用叠加在 EKS 定价之上，并根据任务请求的 vCPU 和内存资源计算<sup>[5](https://aws.amazon.com/emr/pricing/)</sup>。EMR on AWS Outposts 的定价与云端 EMR 实例相同<sup>[5](https://aws.amazon.com/emr/pricing/)</sup>。

使用 EMR Serverless 时，用户为消耗的 vCPU、内存和存储付费，可选择1至16 vCPU 的工作节点，每个工作节点内存2 GB至120 GB，存储20 GB至200 GB（标准）或20 GB至2 TB（shuffle 优化）<sup>[5](https://aws.amazon.com/emr/pricing/)</sup>。当应用使用其他 AWS 服务时，如 Amazon S3 存储、从 S3 传输数据、RDS 或 Redshift，或使用 CloudWatch 日志和事件，将按标准费率收取额外费用<sup>[5](https://aws.amazon.com/emr/pricing/)</sup>。

## 发布与支持生命周期

每个 Amazon EMR 版本是一组开源大数据应用、组件和功能，服务在创建集群时安装和配置<sup>[16](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-components.html)</sup>。AWS 于2024年7月25日公布标准支持政策，将2022年7月24日及之前发布的版本指定为支持终止，并为这些版本提供桥接支持（等同于标准支持），直至2026年8月31日<sup>[6](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-standard-support.html)</sup>。

2026年8月14日，AWS 为积极迁移的客户增加了免费扩展支持：5.36版本以及6.6至6.15版本在2027年6月30日前获得尽力而为的关键安全修复，7.0至7.10版本在2027年8月31日前获得完整的标准支持<sup>[17](https://aws.amazon.com.cdn.amazon.com/about-aws/whats-new/2026/09/emr-extended-support-migration/)</sup>。5.35及更低版本、6.5及更低版本不获得扩展支持，已于2026年9月1日从桥接支持转为支持终止<sup>[6](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-standard-support.html)</sup>。客户可通过联系 AWS Support 并提供迁移计划来获得延期，或使用 Apache Spark 升级代理将应用迁移到当前版本<sup>[17](https://aws.amazon.com.cdn.amazon.com/about-aws/whats-new/2026/09/emr-extended-support-migration/)</sup>。

指定版本的 AWS Apache Spark 运行时获得36个月的长期支持，包括关键和高严重性安全、缺陷和数据损坏问题的修复；支持期结束后，它们直接进入生命周期终止，没有单独的支持终止阶段<sup>[6](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-standard-support.html)</sup>。最新版本体现了这一节奏：Amazon EMR 7.12于2025年11月21日发布，7.13于2026年4月21日发布，7.14于2026年9月8日发布，同时还有 emr-spark-8.1（长期支持版）<sup>[6](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-standard-support.html)</sup>。

## References

1. [What is Amazon EMR? – Amazon EMR Management Guide, AWS](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-what-is-emr.html)
2. [Amazon EMR – LICENSEWARE Wiki](https://wiki.licenseware.io/products/amazon-web-services/amazon-emr/)
3. [Announcing Amazon Elastic MapReduce – AWS, April 2, 2009](https://aws.amazon.com/about-aws/whats-new/2009/04/02/announcing-amazon-elastic-mapreduce/)
4. [Big Data Platform – Amazon EMR – Amazon Web Services](https://aws.amazon.com/emr/)
5. [Amazon EMR Pricing – Amazon Web Services](https://aws.amazon.com/emr/pricing/)
6. [Amazon EMR standard support – Amazon EMR Release Guide, AWS](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-standard-support.html)
7. [Use Amazon EMR cluster scaling to adjust for changing workloads – Amazon EMR Management Guide, AWS](https://docs.aws.amazon.com/us_en/emr/latest/ManagementGuide/emr-scale-on-demand.html)
8. [Amazon Elastic MapReduce now supports Apache Hive – AWS, October 1, 2009](https://aws.amazon.com/about-aws/whats-new/2009/10/01/amazon-elastic-mapreduce-now-supports-apache-hive/)
9. [Amazon EMR on EKS releases – Amazon EMR on EKS Development Guide, AWS](https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/emr-eks-releases.html)
10. [Announcing Amazon EMR Serverless (Preview) – AWS Big Data Blog](https://aws.amazon.com/blogs/big-data/announcing-amazon-emr-serverless-preview-run-big-data-applications-without-managing-servers/)
11. [Amazon EMR Serverless is now generally available – AWS, June 1, 2022](https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-emr-serverless-generally-available/)
12. [Amazon EMR architecture and service layers – Amazon EMR Management Guide, AWS](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-overview-arch.html)
13. [Amazon EMR FAQs – Amazon Web Services](https://aws.amazon.com/emr/faqs/?das=sec&sec=prep)
14. [What is Amazon EMR (Elastic MapReduce)? – TechTarget](https://www.techtarget.com/searchaws/definition/Amazon-Elastic-MapReduce-Amazon-EMR)
15. [Using managed scaling in Amazon EMR – Amazon EMR Management Guide, AWS](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-managed-scaling.html)
16. [About Amazon EMR Releases – Amazon EMR Release Guide, AWS](https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-components.html)
17. [Amazon EMR extends support at no additional cost for customers migrating off older releases – AWS, September 8, 2026](https://aws.amazon.com.cdn.amazon.com/about-aws/whats-new/2026/09/emr-extended-support-migration/)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Big data platforms and frameworks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/amazon-emr

English original: https://www.edgepedia.org/amazon-emr
