简体   繁体   English

如何仅获取昨天的纱线完成/失败工作列表

[英]How to get list of yarn finished/failed jobs of yesterday only

I tried with below command我尝试使用以下命令

$ yarn application -list -appState FINISHED $ 纱线应用程序 -list -appState 已完成

It is giving me list of all the finished jobs but my purpose is to last finished jobs for yesterday date.它给了我所有已完成工作的清单,但我的目的是最后完成昨天的工作。 Also the list doesn't not give the date in the details.此外,该列表未在详细信息中提供日期。

Then i tried curl command然后我尝试了 curl 命令

'''curl -k -X GET “http:rm:8088/cluster/apps?startedTimeBegin=122&startedTimeEnd=124” (122 & 125 is epoc time example) ''' '''curl -k -X GET “http:rm:8088/cluster/apps?startedTimeBegin=122&startedTimeEnd=124”(122 & 125 是 epoc 时间示例)'''

It is also not throwing the specific details.它也没有抛出具体细节。

Im actually shell script to get list of yarn finished and failed jobs from yesterday.我实际上是 shell 脚本来获取昨天的纱线完成和失败的工作列表。

This is really just a yarn question, not a MapR or Cloudera question.这实际上只是一个纱线问题,而不是 MapR 或 Cloudera 问题。

You might have the best luck asking on the Apache Yarn user email list.在 Apache 纱线用户 email 列表中询问您可能会获得最好的运气。

You can do that with combination of您可以通过以下组合做到这一点

yarn application -list and yarn application -status yarn application -listyarn application -status

where base of the command would look something like命令的基础看起来像

for i in ``yarn application -list -appStates FINISHED | grep "^app"| cut -f1``; do yarn application -status $i; done

I will leave the parsing of the output to you. output的解析就交给你了。 Important thing to say is that you can list at most 10k most recent apps (by default).要说的重要一点是,您最多可以列出 10k 个最近的应用程序(默认情况下)。

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

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