AWS Glue 失败时“日志组不存在”

san*_*82h 6 amazon-cloudwatch aws-glue aws-glue-spark

我第一次使用 AWS Glue 的作业,因此我的作业不起作用是正常的,但我看不到任何有关错误的详细日志,因为当我单击“错误日志”链接或“日志”链接 我总是在 AWS CloudWatch 中收到此消息:

* Log group does not exist
The specific log group: /aws-glue/jobs/error does not exist in this account or region.

* An error occurred while describing log streams.
c.substring is not a function
Run Code Online (Sandbox Code Playgroud)

如何查看 AWS Glue 日志?AWS Glue 不会自动创建日志组吗?

San*_*S30 1

一旦您验证日志在故障发生前放置在正确的位置,请检查您的 IAM 角色是否附加了 AWSGlueServiceRole 策略。