

# AWS Glue 版本
<a name="release-notes"></a>

可以在添加或更新作业时配置 AWS Glue 版本参数。AWS Glue 版本决定了 AWS Glue 支持的 Apache Spark 和 Python 版本。Python 版本指示了 Spark 类型的任务支持的版本。下表列出了可用的 AWS Glue 版本、相应的 Spark 和 Python 版本以及其他功能更改。

可以使用 [Apache Spark 的生成式人工智能升级](upgrade-analysis.md)将 Glue ETL 作业从较旧的 Glue 版本（≥ 2.0）升级到最新的 Glue 版本。

## AWS Glue 版本
<a name="release-notes-versions"></a>

<a name="table-glue-versions"></a>

- **AWS Glue 5.1**
  - **支持的运行时环境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 
  - **支持的 Java 版本:** Java 17
  - **功能更改:** AWS Glue 5.1 是在未指定 AWS Glue 版本的情况下创建作业时默认使用的版本。<br />除了 Spark 引擎升级之外，此 AWS Glue 版本还内置了一些优化和升级，例如：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)

- **AWS Glue 5.0**
  - **支持的运行时环境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 
  - **支持的 Java 版本:** Java 17
  - **功能更改:** 除了框架更新之外，此 AWS Glue 版本还内置了优化和升级，例如：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 限制 以下是 AWS Glue 5.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)<br />有关迁移到 AWS Glue 5.0 版本的更多信息，请参阅[将 AWS Glue for Spark 作业迁移到 AWS Glue 版本 5.0](migrating-version-50.md)。

- **AWS Glue 4.0**
  - **支持的运行时环境版本:**  Spark 环境版本 [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)  / **支持的 Java 版本:** Java 8 / **功能更改:** AWS Glue 4.0 在此 AWS Glue 版本中内置了许多优化和升级，例如：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 限制 以下是 AWS Glue 4.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)<br />有关迁移到 AWS Glue 4.0 版本的更多信息，请参阅[将 AWS Glue for Spark 作业迁移到 AWS Glue 版本 4.0](migrating-version-40.md)。
  - **支持的运行时环境版本:** Ray 环境版本 [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) / **支持的 Java 版本:** 不适用 / **功能更改:** 使用 AWS Glue for Ray 构建和运行分布式 Python 应用程序。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)<br />**AWS Glue 4.0 中对 Ray 作业的限制**[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)

- **AWS Glue 3.0**
  - **支持的运行时环境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 
  - **支持的 Java 版本:** Java 8
  - **功能更改:** 除了 Spark 引擎升级到 3.0 之外，此 AWS Glue 版本还内置了一些优化和升级，例如：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 限制 以下是 AWS Glue 3.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)

- **AWS Glue 2.0（[生命周期终止日期为 2026 年 4 月 1 日](https://docs.aws.amazon.com/glue/latest/dg/glue-version-support-policy.html)）**
  - **支持的运行时环境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 
  - **支持的 Java 版本:** 不适用
  - **功能更改:** 除了 AWS Glue 1.0 版本提供的功能外，AWS Glue 2.0 版本还提供：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 由于底层架构更改，AWS Glue 2.0 版本 与 AWS Glue 1.0 版本的某些依赖项和版本不同。在跨主要 AWS Glue 发布版本迁移之前，请验证您的 AWS Glue 任务。 

- **AWS Glue 1.0（[生命周期终止日期为 2026 年 4 月 1 日](https://docs.aws.amazon.com/glue/latest/dg/glue-version-support-policy.html)）**
  - **支持的运行时环境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 
  - **支持的 Java 版本:** 不适用
  - **功能更改:** 您可以在 AWS Glue ETL 任务中维护 Parquet 和 ORC 格式的任务书签（使用 AWS Glue 版本 1.0）。以前，您只能在 AWS Glue ETL 任务中为常见的 Amazon S3 源格式添加书签，例如 JSON、CSV、Apache Avro 和 XML。<br />为 ETL 输入和输出设置格式选项时，您可以指定使用 Apache Avro 读取器/写入器格式 1.8 来支持 Avro 逻辑类型读取和写入（使用 AWS Glue 版本 1.0）。以前，只支持版本 1.7 Avro 读取器/写入器格式。<br />DynamoDB 连接类型支持写入器选项（使用 AWS Glue 1.0 版本）。 限制 以下是 AWS Glue 1.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html)

- **AWS Glue 0.9（[生命周期终止日期为 2026 年 4 月 1 日](https://docs.aws.amazon.com/glue/latest/dg/glue-version-support-policy.html)）**
  - **支持的运行时环境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 
  - **支持的 Java 版本:** 不适用
  - **功能更改:**   限制 以下是 AWS Glue 0.9 的限制：  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/glue/latest/dg/release-notes.html) 



**注意**  
以下 Glue 版本支持下列版本的 PythonShell：  
Glue 版本 1.0 中支持 PythonShell v3.6。
Glue 版本 3.0 中支持 PythonShell v3.9。
此外，仅在 Glue 版本 1.0 和 0.9 中支持开发端点。