

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

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

您可以在新增或更新任務時設定 AWS Glue 版本參數。 AWS Glue 版本會決定 AWS Glue 支援的 Apache Spark 和 Python 版本。Python 版本指示針對 Spark 類型任務支援的版本。下表列出可用的 AWS Glue 版本、對應的 Spark 和 Python 版本，以及其他功能變更。

您可以使用 [Apache Spark 的生成式 AI 升級](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_tw/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_tw/glue/latest/dg/release-notes.html)

- **AWS Glue 5.0**
  - **支援的執行期環境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/glue/latest/dg/release-notes.html) 限制 以下是 5.0 的限制 AWS Glue ： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/glue/latest/dg/release-notes.html)<br />如需有關移轉到 AWS Glue 5.0 版的詳細資訊，請參閱[AWS Glue 將 Spark 任務遷移至 5.0 AWS Glue 版](migrating-version-50.md)。

- **AWS Glue 4.0**
  - **支援的執行期環境版本:**  Spark 環境版本 [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/glue/latest/dg/release-notes.html) 限制 以下為 AWS Glue 4.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/glue/latest/dg/release-notes.html)<br />如需移轉到 AWS Glue 4.0 版的詳細資訊，請參閱[AWS Glue 將 Spark 任務遷移至 4.0 AWS Glue 版](migrating-version-40.md)。
  - **支援的執行期環境版本:** Ray 環境版本 [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/glue/latest/dg/release-notes.html) / **支援的 Java 版本:** N/A / **功能變更:** 使用 AWS Glue for Ray 建置和執行分散式 Python 應用程式。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/glue/latest/dg/release-notes.html)

- **AWS Glue 3.0**
  - **支援的執行期環境版本:**  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/glue/latest/dg/release-notes.html) 限制 以下為 AWS Glue 3.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/glue/latest/dg/release-notes.html) 
  - **支援的 Java 版本:** N/A
  - **功能變更:** 除了 1.0 版提供的 AWS Glue 功能之外，2.0 AWS Glue 版還提供了：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/glue/latest/dg/release-notes.html) AWS Glue 由於基礎架構變更，部分相依性和版本 2.0 版與 1 AWS Glue .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_tw/glue/latest/dg/release-notes.html) 
  - **支援的 Java 版本:** N/A
  - **功能變更:** 您可以在 AWS Glue ETL 任務 (使用 AWS Glue 1.0 版) 中維護 Parquet 和 ORC 格式的任務書籤。先前，您只能將常見 Amazon S3 來源格式加入書籤，例如 AWS Glue ETL 任務中的 JSON、CSV、Apache Avro 和 XML。<br />設定 ETL 輸入和輸出的格式選項時，您可以指定 使用 Apache Avro 讀取器/寫入器格式 1.8，以支援 Avro 邏輯類型讀取和寫入 （使用 1.0 AWS Glue 版）。先前僅支援 1.7 版的 Avro Reader/Writer 格式。<br />DynamoDB 連線類型支援寫入器選項 (使用 AWS Glue 1.0 版)。 限制 以下為 AWS Glue 1.0 的限制： [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/glue/latest/dg/release-notes.html) 
  - **支援的 Java 版本:** N/A
  - **功能變更:**   限制 以下為 AWS Glue 0.9 的限制：  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/glue/latest/dg/release-notes.html) 



**注意**  
下列 Glue 版本支援這些 PythonShell 版本：  
Glue 1.0 版支援 PythonShell 3.6 版。
Glue 3.0 版支援 PythonShell 3.9 版。
此外，僅 Glue 1.0 版和 0.9 版支援開發端點。