yarn 日志
如何确定 yarn 日志位置
“1. 当 yarn.log-aggregation-enable = true 时,yarn 集群中的 application 的日志将被聚合到 yarn.nodemanager.remote-app-log-dir 指向的目录中去,保留时间为 yarn.log-aggregation.retain-secondsyarn.nodemanager.remote-app-log-dir 指向的目录是 hdfs 目录
- 当
yarn.log-aggregation-enable = false时,yarn集群中的application的日志将被存储到yarn.nodemanager.log-dirs属性指向的在nodemanager nodes上的文件夹中,保留时间为yarn.nodemanager.log.retain-seconds
为什么会有 application 没有日志
1 | yarn application does not have any log files. |