我正在学习Hadoop,现在在单节点设置时遇到问题。 我想在网页上看到JobHistory,但是单击logs后只能看到 "No logs available for container container_1541377958924_0001_01_000001" ,我不知道如何解决。
这些是我的配置:
mapred-size.xml
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapreduce.jobhistory.address</name>
<value>hadoop000:10020</value>
<description>MapReduce JobHistory Server IPC host:port</description>
</property>
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>hadoop000:19888</value>
<description>MapReduce JobHistory Server Web UI host:port</description>
</property>
<property>
<name>mapreduce.jobhistory.done-dir</name>
<value>/history/done</value>
</property>
<property>
<name>mapreduce.jobhistory.intermediate-done-dir</name>
<value>/history/done_intermediate</value>
</property>
yarn-site.xml
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.log-aggregation-enable</name>
<value>true</value>
</property>
<property>
<name>yarn.log.server.url</name>
<value>hadoop000:19888/jobhistory/logs/</value>
</property>
原谅我的英语不好,谢谢!
答案 0 :(得分:0)
为了在WebApp中查看Hadoop作业的日志,除了启用聚合日志之外,您还需要启动JobHistory守护程序。
尝试:
$ ./sbin/mr-jobhistory-daemon.sh # OR mr-job-history-daemon.sh
$ stop-yarn.sh && start-yarn.sh