hadoopjob执行完之后:
点击
http://n1.hadoop:19888/jobhistory/attempts/job_1406341693880_0001/r/SUCCESSFUL 出现Aggregation is not enabled. Try the nodemanager at d2.hadoop:42812 错误。
一开始以为是相关的服务没有开启,后来试了好几个都不行。
在网上找到相关资料:
增加以上信息在 yarn-site.xml to enable log aggregation.
<property>
<name>yarn.log-aggregation-enable</name>
<value>true</value>
</property>
增加以上信息在 yarn-site.xml to enable log aggregation.
yarn是用管理job的调度,然后这个地方需要手动的去开启才可以看到。