简体   繁体   English

通过 API 执行时如何获取 AWS Glue 作业的结果?

[英]How to get results of AWS Glue Job when executing via API?

I executed an AWS Glue Job via API Gateway to start the job run.我通过 API Gateway 执行了一个 AWS Glue 作业来启动作业运行。 The job run is successful.作业运行成功。 But the result of the Script (print of a result) has not gotten through the execution.但是脚本的结果(打印结果)没有通过执行。 Only job run ID comes as the response.只有作业运行 ID 作为响应出现。 Is there any way to get the result of the job through an API?有没有办法通过 API 获取作业的结果?

For glue anything you print or log goes into cloud watch You have an option of adding a handler in your logger that writes to a stream and push that stream to a file in s3.为了将您打印或记录的任何内容粘合到云监视中,您可以选择在记录器中添加一个处理程序,该处理程序写入流并将该流推送到 s3 中的文件。 Or better yet, create a StringIO object , store your result to it and then send that to s3或者更好的是,创建一个 StringIO 对象,将结果存储到它,然后将其发送到 s3

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

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