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 

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

> 有兄弟@qq_37549847 跟我说要 `将yarn.nodemanager.remote-app-log-dir配置的目录 执行下 chmod +t 设置了黏着位 ` ,这个我还没试.  先记录一下.

 

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

 

 

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

 

 

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值