- Newest
- Most votes
- Most comments
Hello
I have also implemented by the same steps by writing paramiko==2.12.0 in requirements file. It worked fine for me and the library was also installed. If you are still facing issues, please reach out to AWS Glue support and share your job run id, we ll probably reach out to Service team if we can replicate the issue.
It appears that you've correctly followed the documented steps for installing additional Python libraries in AWS Glue 5.0 using a requirements.txt file. However, there are a few things we can check to troubleshoot this issue:
-
File Format: Ensure that your requirements.txt file is in the correct format. Each library should be on a new line, and there should be no extra spaces or characters. Your current format looks correct.
-
S3 Path: Double-check that the S3 path in your --additional-python-modules parameter exactly matches the location of your requirements.txt file. Even a small typo can cause issues.
-
File Permissions: Verify that the requirements.txt file in S3 has the correct permissions for the Glue job to access it.
-
Job Parameters: Confirm that both job parameters (--python-modules-installer-option and --additional-python-modules) are correctly set in your Glue job configuration.
-
Glue Version: Ensure you're using AWS Glue 5.0, as this feature is specific to this version.
-
CloudWatch Logs: Check the full CloudWatch logs for your Glue job. Look for any error messages or warnings related to package installation or S3 access issues.
-
Network Configuration: If your Glue job is running in a VPC, ensure it has the necessary network access to reach S3.
-
Try Direct Installation: As a test, you could try specifying the package directly in the --additional-python-modules parameter like this: --additional-python-modules paramiko==2.12.0
If after checking these points the issue persists, you may want to try creating a new Glue job with minimal configuration to isolate the problem. If the problem continues, it could potentially be a bug or limitation in the current implementation, and you may need to contact AWS support for further assistance.
Remember, AWS Glue uses PySpark, so some Python libraries might not be compatible or may require special handling in a distributed environment. Always ensure that the libraries you're trying to install are compatible with your Glue environment.
Sources
Using Python libraries with AWS Glue - AWS Glue
Setting up to use Python with AWS Glue - AWS Glue
Introducing AWS Glue 5.0 for Apache Spark | AWS Big Data Blog
Troubleshoot AWS Glue streaming job | AWS re:Post
answered 2 years ago
Using the --additional-python-modules parameter, it was working on Tuesday, but on Wednesday (12/18) even that stopped and broke a production release I had initiated... I had to revert back to Glue 4.0!
Relevant content
- AWS OFFICIALUpdated 2 years ago

It worked with Glue 5, then suddenly started having similar issues about 24 hours ago. It started in one region and then happened in a second. I was installing via --additional-python-modules and then with a requirements.txt. After comparing the logs of the successful prior runs, it appears that the pip install simply did not run in the failed job log outputs. I had to downgrade to Glue 4, then specify compatible versions of pandas and numpy to get my jobs working again. It is only working in one region for me with Glue 5.
Yes, Using the --additional-python-modules parameter, it was working in us-east-1 on Tuesday, but on Wednesday (12/18) even that stopped and broke a production release I had initiated... I had to revert back to Glue 4.0! Need this option to work so we can install the retry module... (And for some reason Glue 5.0 also needed us to add the tqdm module, where 4.0 does not.)
Seems to be working again today in Glue 5
I can confirm using the --additional-python-modules also works again in us-east-1.