如何通过 AWS CloudFormation 为 AWS Glue 作业传递特殊参数

0

【以下的问题经过翻译处理】 使用 AWS CloudFormation 创建 AWS Glue ETL 作业时,如何指定高级选项,例如作业可能需要的其他 JAR、用于 KMS 加密的特殊安全配置参数等?

profile picture
전문가
질문됨 5달 전33회 조회
1개 답변
0

【以下的回答经过翻译处理】 你好,

在 AWS CloudFormation 中使用属性下的资源 AWS::Glue::Job 时,您需要在 [DefaultArguments] (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource -glue-job.html#cfn-glue-job-defaultarguments) 部分。

            "DefaultArguments": {
            "--TempDir": "s3://aws-glue-temporary-633748029103-eu-west-1/serhat",
            "--class": "GlueApp",
            "--enable-glue-datacatalog": "",
            "--enable-metrics": "",
            "--encryption-type": "sse-s3",
            "--job-bookmark-option": "job-bookmark-enable",
            "--job-language": "scala"
        },

您可以在 [此处](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html#aws-glue-api-crawler -pyspark-extensions-python-intro-parameters)。

对于额外的 JARS:--extra-jars 是参数。

对于服务器端加密:--encryption-type 是参数。

希望这可以帮助你。

profile picture
전문가
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인