-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability for aws_glue_job to use Python 3 and glue version 1.0 #9524
Comments
It looks like this is enabled via the Glue version for a job, added in AWS SDK v1.21.4. |
Related: #9409 |
+1 |
Alternative to set python and glue version
|
Any idea when does this change get pushed? The solution/workaround provided by @ezidio works exactly as expected. But it would be good if this change is made through terraform and pushed. |
I will do the same as @ezidio suggests, but with job-language scala instead of python. |
Maybe more urgent given the announcement of python 2's official sunsetting on Jan 1 2020. |
the "workaround" is a horrible PITA as all the arguments need to be flattened into one string... with nested escaping. |
In fact there is no proper workaround because any modification will reset the job back to Python 2. The local-exec provisioner will not be rerun. |
I think the below script logic should do the job for you. Using null resource based on timestamp.
|
@Vedant-R now it will be always run, 40 times for the 40 jobs, without any changes... :F |
Yes, but it solves your purpose of not getting reset to python2. |
The python_version = "3" option is enabled in latest provider
|
I am also getting the same issue. What i am missing? |
For time being I have deployed with python_version 3 and then from AWS console modified the job with glueVersion 1.. This fixed it.. However its good to have a fix from the provider |
This issue can be fixed through Cloud formation template. In cloud formation template we can directly declare Glue version and Python version. It will be very easy way and no need update aws provider. { |
@g-sree all updates using Terraform will always reset the Python version... |
This is my terraform declaration ..
I'm using python3.. however if you modify an existing job only python version changes and not the glue version which should be 1.0 . In this case the job will fail in the next run. I have manually updated the glue version from 0.9 to 1.0 in the AWS console. I never had a problem afterwards . |
A cloudformation-based workaround: #8526 (comment)
|
Support for the new |
This has been released in version 2.34.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
AWS Glue now supports the ability to run ETL jobs on Apache Spark 2.4.3 (with Python 3).. terraform support needed
New or Affected Resource(s)
aws_glue_job
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: