简体   繁体   English

如何将实时日志写入 AWS Glue 日志

[英]How can I write real time logs to AWS Glue log

So my problem is sometimes my Glue job takes a lot of time to run or even fails all together because of some inexplicable issues.所以我的问题是有时我的 Glue 工作需要很多时间才能运行,甚至由于一些莫名其妙的问题而一起失败。 Is there a way to get messages printed out to the output or error logs so that I can at least track where the job is right now or was at the end?有没有办法将消息打印到输出或错误日志中,以便我至少可以跟踪作业现在或结束的位置?

I tried the solution in How do I write messages to the output log on AWS Glue?我尝试了如何将消息写入 AWS Glue 上的输出日志中的解决方案

But that does not seem to be working for me.但这似乎对我不起作用。 The Output log generates a ton of logs and even when I search or filter for keywords in my message, I am still not able to find them.输出日志会生成大量日志,即使我在消息中搜索或过滤关键字,我仍然无法找到它们。

Right now I am considering writing messages to a S3 file to get around this issue.现在我正在考虑将消息写入 S3 文件来解决这个问题。 But it got me wondering if there isn't actually any other way to display messages that I can check while the job is running?但这让我想知道是否实际上没有任何其他方式可以显示我可以在作业运行时检查的消息?

您可以编辑作业以使用连续记录功能并在那里跟踪您的记录器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM