我正在努力寻找如何通过cloudformation创建python shell(而不是spark)胶水作业,我无法找到定义该属性的属性。
只有命令才能使用的名称是jobcommand名称,但根据命令它只能限制为glueetl
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html
答案 0 :(得分:0)
您必须将pythonshell用于python,并且不应指定dpus。
答案 1 :(得分:0)
如docs中所述,在Command的Name属性中使用“ pythonshell”。
PythonShellJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: pythonshell
ScriptLocation: "s3://my-glue-scripts//my-script-file.py"
Role: !Ref MyJobRole