Skip to content

Why glue 5.1 does not work for hudi?

-1

Aws glue 5.1 does not work with hudi in the final step of the write process the Metadata file is missing

asked 8 months ago163 views

1 Answer
0

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. You can review more on this here [1].

However, I would suggest using the supported versions if you continue to face issues when using the custom jar files.

=====References=====

[1] https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-format-hudi.html

AWS
EXPERT

answered 8 months ago

  • Hi and thank you for your answer. The problem i am facing appears to be a bug of aws in glue 5.1. The issue occurs when writing a file using the supported Hudi version in glue 5.1. During the process, the creation of the file <database>_$folder$ is missing. without this file athena can not query the data and attempted to read the file with spark results with the same issue. Can you please check this issue? I have reviewed the same code using glue 5.0 and it worked perfectly including the creation of the required metadata file.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.