在使用YAML(无服务器)使用glue 1.0版部署AWS glue Job时,如何选择python版本3?我正在使用无服务器的YAML代码部署AWS glue。亚马逊网络服务已经提供了GlueVersion参数来选择要使用的胶水版本,我将其设置为'1.0‘。我想使用Python 3,但它正在胶水作业中部署到python 2。有没有人知道如何使用YAML部署代码将其设置为使用python3,而无需手动更改glue作业?
发布于 2020-12-10 03:19:53
与亚马逊网络服务确认,他们的文档令人困惑,他们提到的PythonVersion参数是用于python shell的。他们正在修改文件的措辞。下面的形成模板可以为我工作。
Type: AWS::Glue::Job
Properties:
Name: <job name>
Description: ETL Job
GlueVersion: '1.0'
Command:
Name: glueetl
PythonVersion: 3
ScriptLocation: <script location>
ExecutionProperty:
MaxConcurrentRuns: 1
AllocatedCapacity: <number for workers>
DefaultArguments:
<any default arguments for glue job>
Role:
Ref: <glue roles>
Connections:
Connections:
- Ref: <any JDBC connections>https://stackoverflow.com/questions/64972671
复制相似问题