如何删除纱线日志 [英] How to delete yarn logs

查看:133
本文介绍了如何删除纱线日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对YARN很新颖。我运行了我创建日志的oozie工作。



我可以看到纱线记录

  yarn logs -applicationId application_123456789_12345678 

我想知道如何删除这些日志?我可以删除文件以删除日志吗?

解决方案

没有纱线命令可以从CLI中删除纱线日志。

>

您可以通过使用Linux rm 进入纱线日志目录 yarn.nodemanager.log -dirs / application _ $ {appid} 。单个容器日志目录将位于名为 container _ {$ contid} 的目录下。每个容器目录将包含文件 stderr stdin syslog 由该容器生成。


I'm pretty new to YARN. I ran my oozie jobs which creates logs.

I can see yarn logs with

yarn logs -applicationId application_123456789_12345678

I want to know how I can delete those logs? Can I just delete the file to remove the logs?

解决方案

There no yarn commands to delete yarn logs from CLI.

You can delete by using Linux rm by going to the yarn log directory yarn.nodemanager.log-dirs /application_${appid}. Individual containers log directories will be below this, in directories named container_{$contid}. Each container directory will contain the files stderr, stdin, and syslog generated by that container.

这篇关于如何删除纱线日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆