【问题标题】:cloudformation glue job type python shellcloudformation 胶水作业类型 python shell
【发布时间】:2020-10-20 16:37:02
【问题描述】:

我正在努力寻找如何通过 cloudformation 创建 python shell(不是 spark)胶水作业,我无法找到定义它的属性。

唯一有意义的是 jobcommand name,但它仅限于 glueetl 根据 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-job-jobcommand.html

【问题讨论】:

    标签: amazon-cloudformation jobs aws-glue


    【解决方案1】:

    尽管 cloudformation 页面声明唯一接受的值是 glueetl,但胶水文档指出 pythonshell 也是一个选项。 https://docs.aws.amazon.com/glue/latest/dg/add-job-python.html

    【讨论】:

      【解决方案2】:

      你必须为 python 使用 pythonshell 并且不应该指定 dpus。

      【讨论】:

        【解决方案3】:

        在 Command 的 Name 属性中使用 `pythonshell',如 docs 中所述。

        PythonShellJob:
          Type: AWS::Glue::Job
          Properties:
            Command:
              Name: pythonshell
              ScriptLocation: "s3://my-glue-scripts//my-script-file.py"
            Role: !Ref MyJobRole
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2020-08-07
          • 2020-04-12
          • 2022-08-09
          • 2020-12-13
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多