- Newest
- Most votes
- Most comments
Hello, Thank you for sharing this bug report. I can see you're experiencing a conflict between AWS Glue's pre-installed Hudi 0.15.0 libraries and your custom Hudi 1.1.1 JARs, where the --datalake-formats="" parameter is being ignored.
Based on my investigation of this issue, this appears to be issue with how the parameter is handled, and I see from the public documentation it is suggested as below:
Using a different Hudi version
To use a version of Hudi that AWS Glue doesn't support, specify your own Hudi JAR files using the --extra-jars job parameter. Do not include hudi as a value for the --datalake-formats job parameter. If you use AWS Glue 5.0 or above, you must set --user-jars-first true job parameter.
Recommended Solution
To work around this issue, please try the following configuration:
- Remove the --datalake-formats parameter entirely from your job configuration (don't set it to empty string or any value)
- Add the --extra-jars parameter with your Hudi 1.1.1 JAR files "hudi-spark3-bundle" and spark-avro, etc. compatible with Spark 3.5.4
[OR] Add the same S3 paths to the Dependent JARs path field under:
Job Details → Advanced Properties → Libraries → Dependent JARs path
&&
Set --user-jars-first=true to prioritize your custom JARs over system libraries This approach explicitly provides your custom Hudi version while allowing --user-jars-first to give it precedence over the system-installed libraries.
If the Issue Persists
If you continue to see the "Multiple sources found" error after implementing the above changes:
- Test in AWS Glue 4.0 to confirm whether this behavior is specific to Glue 5.0
- Open an AWS Support case with the following details:
- Your job configuration (sanitized)
- Spark UI classpath entries screenshot
- Job execution logs showing the error
- Confirmation of any behavioural differences between Glue 4.0 and 5.0
Thank you and have a good day!
answered 10 months ago
When using a custom version of Hudi (like 1.1.1) in AWS Glue, you're encountering a common issue where the native Hudi libraries (0.15.0) are still being loaded despite setting --datalake-formats to an empty string.
For custom Hudi versions in AWS Glue, you need to follow these specific steps:
-
Do not include "hudi" in the
--datalake-formatsparameter. Setting it to an empty string ("") should work, but as you've discovered, there may be issues with this approach. -
Upload your custom Hudi JAR files to Amazon S3.
-
Set the
--extra-jarsparameter to point to your custom Hudi JAR files in S3. -
For AWS Glue 5.0 and above, ensure you set
--user-jars-firsttotrueto prioritize your custom JARs.
If you're still experiencing the "Multiple sources found" error, you might need to try one of these alternative approaches:
-
Instead of setting
--datalake-formatsto an empty string, try setting it to a different data lake format that you're not using (like "delta" or "iceberg") to avoid loading the Hudi libraries. -
If you're using AWS Glue 5.0 or later, make sure the
--user-jars-first trueparameter is correctly applied, as this should prioritize your custom JARs over the system ones. -
Consider using a different AWS Glue version that might have different default behavior for handling data lake formats.
The issue you're experiencing suggests that AWS Glue might be loading the data lake format JARs by default in some configurations, regardless of the --datalake-formats setting. This behavior might vary across different AWS Glue versions.
Sources
Working with Iceberg in AWS Glue - AWS Prescriptive Guidance
Using the Delta Lake framework in AWS Glue - AWS Glue
answered 10 months ago
Relevant content
asked 9 months ago
asked 2 years ago
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago

Hi, I tried using adding hudi bundles as S3 paths in --extra-jars and Glue 5.0 without any success. I noticed that AWS Glue 5.0 pre-loads Iceberg, Hudi and Delta in contrary to Glue 4.0 which requires --datalake-formats for them to load : https://aws.amazon.com/blogs/big-data/develop-and-test-aws-glue-5-0-jobs-locally-using-a-docker-container/#:~:text=Changes%20between%20the%20AWS%20Glue,specific%20table%20format%20is%20loaded .
It does not make sense in our project to use Glue 4.0 since it has limited acces Lake Formation although it gives more control on the pre-loading process of datalake format bundles. Moreover, it is not compatible with my organisations' Glue job trait, which only supports the versions 5.0 and 5.1 because it loads pre-defined awssdk modules. If I change these, other jobs in my repository would fail.
Is it possible to activate back this control level in Glue 5.0 and later ? It's a bit annoying not being able to deactivate old datalake version pre-loads and that they interfere with the version that we want to use. It's actually about bringing back the functionality of --datalake-formats parameter which turns out to be useless in recent Glue versions.