overwrite boto3 version for AWS Glue Python Shell jobs
See original GitHub issueI need to use a newer boto3 package for an AWS Glue Python3 shell job (Glue Version: 1.0). I included the wheel file downloaded from: https://pypi.org/project/boto3/1.13.21/#files: boto3-1.13.21-py2.py3-none-any.whl
under Python Library Path. However, boto3.__version__
prints out 1.9.203
even if the job log console says boto3==1.13.21
was successfully installed. For some reason, Glue Python3 Shell job (Glue Version: 1.0) is not letting me overwrite the boto3 package version with the wheel file. Is there any way to overwrite?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:22 (6 by maintainers)
Top Results From Across the Web
Update boto3 version - AWS re:Post
I need to use a newer boto3 package for AWS Glue Python3 shell job (Glue Version: 1.0). I included the a wheel file...
Read more >How to run an AWS Glue Python Spark Job with the Current ...
Download the boto3-1.17. · Place it in S3 location · Go back to the Glue Job and under the Security configuration, script libraries,...
Read more >Python shell jobs in AWS Glue
Define the job properties for Python shell jobs in AWS Glue, and create files that contain your own Python libraries.
Read more >Glue — Boto3 Docs 1.26.32 documentation - AWS
A low-level client representing AWS Glue ... import boto3 client = boto3.client('glue') ... The Python version being used to run a Python shell...
Read more >Boto3 version for glue pyspark job : r/aws - Reddit
You can try including the updated version of boto3 in the custom python library path for your glue job. I'm not sure how...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
We got AWS Glue Python Shell working with all dependency as follows. The Glue has awscli dependency as well along with boto3
AWS Glue Python Shell with Internet
Add awscli and boto3 whl files to Python library path during Glue Job execution. This option is slow as it has to download and install dependencies.
Upload the files to s3 bucket in your given python library path
Add the s3 whl file paths in the Python library path. Give the entire whl file s3 referenced path separated by comma
Add the following code snippet to load the new files
AWS Glue Python Shell without Internet connectivity
Reference : AWS Wrangler Glue dependency build
We followed the steps mentioned above for awscli and boto3 whl files.
Below is the latest requirements.txt compiled for the newest versions
Upload the boto3-depends.zip to s3 and add the path to Glue jobs Referenced files path Note: It is Referenced files path and not Python library path
Placeholder code to install latest awcli and boto3 and load into AWS Python Glue Shell. Additional code as per below thread
https://forums.aws.amazon.com/thread.jspa?messageID=954344
Thanks, Sarath
@gbeaven90 Hi, I don’t know if you are still facing this issue. I was facing the exact same one and I managed to solve it by also installing the latest version of the AWS CLI. The one indicated by @sarath-mec (version 1.18) was already not recent enough.