Migrating AWS Glue for Spark jobs to AWS Glue version 6.1
This topic describes the changes between AWS Glue version 6.0 and 6.1 to allow you to migrate your Spark applications and ETL jobs to AWS Glue 6.1. It also describes the features in AWS Glue 6.1 and the advantages of using it.
AWS Glue version 6.1 runs Apache Spark 4.1.3, Python 3.14, Scala 2.13.17, and Amazon Corretto 17 (JDK 17).
Topics
New features
This section describes the new features and advantages of AWS Glue version 6.1 compared to AWS Glue version 6.0.
Engine and runtime version changes
Note the following engine and runtime changes:
-
Apache Spark upgrade from 4.1.1 in AWS Glue 6.0 to 4.1.3 in AWS Glue 6.1.
-
Python upgrade from 3.13 to 3.14.
-
Scala remains at 2.13.17 and Java remains Amazon Corretto 17 (JDK 17). Hadoop is unchanged.
-
AWS SDK for Java 2.x bundle upgraded to 2.55.8 (the largest dependency change in this release).
-
For full version details, see Appendix A: Notable dependency upgrades.
Feature highlights
AWS Glue 6.1 introduces the following features. For full details, see the dedicated feature pages where cross-referenced.
-
Graviton (arm64) workers are the default — On AWS Glue version 6.1, a Spark job created without a
WorkerTyperuns on arm64 Graviton workers by default (G.1X.GRAVITON). You can also choose a Graviton G or R worker type explicitly (G.1X.GRAVITONthroughG.16X.GRAVITONandR.1X.GRAVITONthroughR.8X.GRAVITON) through theWorkerTypeAPI field or the AWS Glue Studio worker-type picker. For more information, see AWS Graviton (arm64) workers. -
Managed scaling profile — A managed auto-scaling mode that enables Spark dynamic allocation and scales executors automatically, selected with the
--scaling-profile balancedjob argument. On AWS Glue version 6.1, AWS Glue enables this profile by default for Spark (glueetl) jobs. Interactive sessions do not support it. For more information, see Using the managed scaling profile for AWS Glue. -
AWS Glue Data Catalog lineage — In AWS Glue version 6.1 and later, Spark jobs emit table- and column-level data lineage by default, with no library, script, or parameter change. Lineage is then surfaced in the console AWS Glue Data Catalog Lineage tab and through the API. For more information, see What is data lineage in the AWS Glue Data Catalog?.
-
AWS Glue system tables — Opt-in, read-only AWS Glue system tables of job-run and session history, stored in an AWS-managed Amazon S3 Tables bucket and queryable from engines such as Amazon Athena. For more information, see Use AWS Glue system tables.
-
Fine-grained access control (FGAC) for governed user-defined functions — Governance-approved user-defined functions (UDFs), packaged as AWS Lake Formation custom code artifacts, can run in jobs that use FGAC. Approved artifacts are registered in AWS Lake Formation and verified before the job starts. For more information, see Using AWS Glue with AWS Lake Formation for fine-grained access control and Using Lake Formation-governed UDFs in AWS Glue.
-
Expanded fine-grained access control (FGAC) support — On jobs that use AWS Lake Formation fine-grained access control, AWS Glue version 6.1 supports a broader set of Spark SQL features and more Apache Iceberg table operations than AWS Glue version 6.0, and extends Lake Formation-governed access to additional Spark Connect and Amazon S3 scenarios. For more information, see Using AWS Glue with AWS Lake Formation for fine-grained access control.
-
Direct access to underlying Amazon S3 Parquet files for AWS Glue Data Catalog tables through AWS Lake Formation — In AWS Glue version 6.1 and later, with your existing AWS Lake Formation table permissions, Spark jobs can read the underlying Amazon S3 Parquet files of AWS Glue Data Catalog tables directly through Lake Formation credential vending, without configuring separate Amazon S3 permissions. For more information, see Accessing Amazon S3 locations in the AWS Lake Formation Developer Guide.
-
Iceberg materialized-view incremental refresh (Spark Declarative Pipelines) — A Spark Declarative Pipelines materialized view can be backed by a AWS Glue Iceberg materialized view, so that a pipeline run refreshes the view incrementally instead of fully recomputing it. For details, see Spark Declarative Pipelines with Iceberg materialized views.
Breaking changes
Note the following customer-facing changes:
-
Spark 4.1 result changes — Spark 4.1.3 corrects results for several operations, including collated string comparisons,
NOT INsubqueries, hyperbolic-function overflow, predicate pushdown into joins, and double-executed cached SQL commands. Jobs that relied on the previous behavior may see different output. -
Iceberg Parquet vectored I/O is now off by default to avoid out-of-memory errors on heavily compressed tables.
-
Job argument parsing — Empty-value arguments (for example,
--extra-files) are no longer misparsed, and--confvalues that contain=are now accepted. -
GPU/RAPIDS error messages now match standard Spark text, which can affect tooling that matches on error strings.
Apache Spark engine changes (Spark 4.1.1 to 4.1.3)
AWS Glue version 6.1 upgrades the Apache Spark engine from 4.1.1 to 4.1.3. For the
full list of changes, see the
Spark 4.1.3 release
notes
New and improved
Note the following improvements:
-
Correctness and performance fixes for dynamic partition overwrite, storage-partitioned joins, and collations; faster shuffle fetches; and new
kll_merge_agg_*SQL functions. ORC is upgraded to 2.2.2. -
LIKEandILIKEpattern matching of the form%a%b%is approximately 1.8 times faster. -
Adaptive bloom-filter joins build runtime, data-adaptive bloom filters for semi, anti, outer, and non-equi joins with lower driver memory. This is configuration-gated. Spark 4.1 also auto-tunes Iceberg input-split sizes.
Behavior changes to know before migrating
Output may differ from AWS Glue 6.0 because of the following changes:
-
Spark SQL returns corrected results for collated string comparisons,
NOT INsubqueries, hyperbolic-function overflow, predicate pushdown into joins, and double-executed cached SQL commands. -
Iceberg Parquet vectored I/O is now off by default, and Iceberg input-split auto-tuning is added.
-
S3A changes: a committer thread-count increase for faster commits, a cross-region fix through
fs.s3a.endpoint.region, and new opt-in EMRFS-to-S3A compatibility parameters (off by default). -
AWS Glue Data Catalog semantics:
DROP TABLE IF EXISTSnow reliably drops the table, and a missing permission on an Iceberg table now returns an access-denied error instead of a table-not-found error. -
Delta concurrent multi-cluster writes now use Amazon S3 conditional writes. Existing log-store configurations continue to work, and conflicts surface as retryable Delta commit conflicts.
Actions to migrate to AWS Glue 6.1
For existing jobs, change the Glue version from the previous version to
Glue 6.1 in the job configuration.
-
In AWS Glue Studio, choose the AWS Glue 6.1 option in
Glue version. -
In the API, choose
6.1in theGlueVersionparameter in the UpdateJob API operation.
For new jobs, choose Glue 6.1 when you create a job.
-
In the console or AWS Glue Studio, choose the AWS Glue 6.1 option in
Glue version. -
In the API, choose
6.1in theGlueVersionparameter in the CreateJob API operation.
To help migrate your jobs, you can use Generative AI upgrades for Apache Spark to upgrade your AWS Glue ETL jobs from older AWS Glue versions (2.0 and later) to the latest AWS Glue version.
You can use the Spark Troubleshooting Agent to troubleshoot your AWS Glue ETL jobs.
Migration checklist
Migrating from AWS Glue version 6.0 to 6.1 is a lower lift than migrating from older AWS Glue versions to 6.0, because it is a patch-level Spark upgrade with no Scala, AWS SDK for Java v1, or EMRFS changes. Review this checklist for migration:
-
[Python] Test your jobs against Python 3.14 for standard-library and third-party compatibility; review the What's New in Python 3.14
notes on the Python website. The bundled pip libraries are nearly unchanged from AWS Glue 6.0 ( certifiis updated andduckdbis added). -
[Spark] Review the Apache Spark 4.1.1-to-4.1.3 point-release changes, especially the corrected SQL results and the Iceberg Parquet vectored-I/O default change.
-
[Dependencies] Rebuild
--extra-jarsand--user-jars-firstartifacts against Spark 4.1.3 if they pin Spark internals. Note that the AWS SDK for Java 2.x bundle is now 2.55.8. -
[Graviton] On AWS Glue version 6.1, new Spark jobs created without a
WorkerTypedefault to Graviton (arm64) workers; existing jobs keep their configured worker type when you upgrade. If a new job ships prebuilt x86 native binaries (for example, custom.sofiles, native Python wheels, or JNI libraries), rebuild them for aarch64/arm64, or set an x86WorkerType. -
[Lineage] If a job currently emits lineage to Amazon DataZone, clear its "Generate lineage events" setting and remove the Amazon DataZone properties (for example,
spark.openlineage.transport.domainId) before upgrading to 6.1, because 6.1 emits lineage to the AWS Glue Data Catalog by default.
Migrating from AWS Glue 6.0 to AWS Glue 6.1
All existing job parameters and major features that exist in AWS Glue version 6.0 also exist in AWS Glue version 6.1. Note the following changes when migrating:
-
Python version: Python 3.14 is the runtime (up from 3.13). The
--additional-python-modulesand--python-virtual-envfeatures continue to work. Test your code for Python 3.14 compatibility. -
Spark version: The Apache Spark engine moves from 4.1.1 to 4.1.3. This is a point release, but it includes corrected SQL results and a change to the Iceberg Parquet vectored-I/O default. See Apache Spark engine changes (Spark 4.1.1 to 4.1.3).
-
AWS SDK for Java: The 2.x bundle moves to 2.55.8. If you use
--user-jars-firstwith a custom JAR that bundles an older AWS SDK for Java 2.x, ensure the bundled SDK is compatible with the runtime. -
Worker types: AWS Glue 6.1 defaults new Spark jobs to Graviton (arm64) workers. See the Graviton worker-type notes in New features.
Refer to the Apache Spark migration documentation:
-
Migration Guide: Spark Core
on the Apache Spark website -
Migration Guide: SQL, Datasets and DataFrame
on the Apache Spark website -
Upgrading PySpark
on the Apache Spark website (relevant to the Python 3.13 to 3.14 move)
Migrating from older AWS Glue versions to AWS Glue 6.1
Use the following steps to migrate from an older AWS Glue version to AWS Glue 6.1:
-
To first migrate to AWS Glue 6.0 from an earlier version, see Migrating AWS Glue for Spark jobs to AWS Glue version 6.0.
-
For the final migration step, see Migrating from AWS Glue 6.0 to AWS Glue 6.1.
Connector and JDBC driver migration for AWS Glue 6.1
Connectors and JDBC drivers are unchanged from AWS Glue 6.0. For the versions, see:
The open table formats (Iceberg, Hudi, and Delta Lake) retain their AWS Glue 6.0 versions in AWS Glue 6.1. See Appendix D: Open table format versions.
Known issues and limitations
Note the following known issues and limitations in AWS Glue version 6.1:
-
Amazon S3 shuffle configuration key change — In AWS Glue version 6.1, a job that enables the Amazon S3 shuffle manager with
--write-shuffle-files-to-s3must set the shuffle location with thespark.shuffle.storage.pathconfiguration or with--TempDir. The launcher no longer reads thespark.shuffle.glue.s3ShuffleBucketconfiguration that AWS Glue version 6.0 accepted, so a job that sets onlyspark.shuffle.glue.s3ShuffleBucketand does not provide--TempDirfails at launch. Before you upgrade to AWS Glue version 6.1, setspark.shuffle.storage.pathto your Amazon S3 shuffle location. -
The AWS Glue version 6.0 known limitations also continue to apply to AWS Glue version 6.1, because the open table format versions are unchanged. See Known limitations.
Appendix A: Notable dependency upgrades
The following are notable dependency changes. AWS Glue 6.1 is based on the
emr-spark-8.2.0 release base.
| Dependency | Version in AWS Glue 6.1 | Version in AWS Glue 6.0 | Change |
|---|---|---|---|
| Apache Spark | 4.1.3 | 4.1.1 | Upgraded |
| Python (runtime) | 3.14.10 | 3.13.18 | Upgraded |
| Scala | 2.13.17 | 2.13.17 | Unchanged |
| Java (Amazon Corretto) | 17.0.21 | 17 | Unchanged (major version 17) |
| Hadoop | 3.4.2-amzn-3 | 3.4.2-amzn-3 | Unchanged |
| AWS SDK for Java (v2 bundle) | 2.55.8 | 2.44.6 | Upgraded |
| Jackson (Spark jars) | 2.21.2 | 2.20.0 | Upgraded |
| Parquet | 1.16.0-amzn-0 | 1.16.0 | Unchanged (base version) |
| ORC | 2.2.2 | (via Spark 4.1.1) | Upgraded via Spark 4.1.3 |
| Netty | 4.2.7.Final | 4.2.7.Final | Unchanged |
| Avro | 1.12.1 | 1.12.0 | Upgraded |
| log4j2 | 2.24.3 | 2.24.3 | Unchanged |
Appendix B: JDBC driver versions
JDBC drivers are unchanged from AWS Glue 6.0.
| Driver | JDBC driver version in AWS Glue 6.1 | JDBC driver version in AWS Glue 6.0 |
|---|---|---|
| Amazon Redshift | redshift-jdbc42-2.2.7 | redshift-jdbc42-2.2.7 |
| PostgreSQL | 42.7.3 | 42.7.3 |
Appendix C: Connector versions
Connectors are unchanged from AWS Glue 6.0. The following table lists the connector versions provided in AWS Glue 6.1.
| Connector | Version in AWS Glue 6.1 |
|---|---|
| Amazon Redshift Spark connector | 6.7.0-spark_4.1 |
| Kinesis | 2.1.0 |
| DynamoDB (EMR) | 6.1.0 |
| Data Catalog client | 4.11.0 |
| Kafka | kafka-clients 3.9.2, MSK IAM auth 2.2.0 |
| OpenLineage (Spark) | 1.0 |
| AWS Glue connectors (BigQuery, Snowflake, MongoDB, OpenSearch, PostgreSQL, MySQL, Oracle, SQL Server, Azure Cosmos DB, Azure SQL, SAP HANA, Teradata, Vertica) | 1.0 |
Appendix D: Open table format versions
The open table formats retain their AWS Glue 6.0 versions in AWS Glue 6.1.
| Open table format | Version in AWS Glue 6.1 | Version in AWS Glue 6.0 |
|---|---|---|
| Apache Iceberg | 1.11.0-amzn-0 | 1.11.0-amzn-0 |
| Delta Lake | 4.2.0-amzn-0 | 4.2.0-amzn-0 |
| Apache Hudi | 1.1.1-amzn-0 | 1.1.1-amzn-0 |
Appendix E: Python modules provided in AWS Glue 6.1
The bundled Python modules are nearly identical to AWS Glue 6.0. The interpreter moves from Python
3.13 to 3.14, certifi is updated, and duckdb is newly included; all other
modules keep their AWS Glue 6.0 versions. For the full list of modules provided in AWS Glue 6.1, see
Python modules already provided in AWS Glue.