Yarn 日志无法访问: Aggregation may not be complete, Check back later or try the nodemanager at ....

用的 ambari 日志看不到 yarn运行结果日志. 折腾我了一个半小时...炸毛!!!!!!

 

报错截图:

Logs not available for container_e08_1583895535087_0001_01_000001. Aggregation may 
not be complete, Check back later or try the nodemanager at henghe-047:45454

 

解决方案:

1.修改配置, 在HDFS > Configurations > Custom core-site > Add Property

    hadoop.http.staticuser.user=yarn

不改会报错: User [dr.who] is not authorized to view the logs for application

 

2.删除配置:

YARN > Configurations > Custom yarn-site

3.修改配置 YARN > Configurations >Resource Manager > 勾选 Enable Log Aggregation

4.修改配置 YARN > Configurations >Node Manager 

修改 yarn.nodemanager.remote-app-log-dir  值为 /tmp/logs 

[目录必须这个,别问我为啥,我也不知道,知道的可以告诉我一下,试了很多遍就是不起作用,我也很无奈....]

5. 重启 hdfs, 重启 yarn ,重启 mr . [别偷懒, 只重启 yarn 不起作用...]

我之前的 yarn 配置更改前跟更改后的对比. 截图. 有知道为啥这么操作的请大神告知....

发布了336 篇原创文章 · 获赞 846 · 访问量 41万+

猜你喜欢

转载自blog.csdn.net/zhanglong_4444/article/details/104792999