hadoop 查看 mr日志报错

张映 发表于 2019-03-01

分类目录: hadoop/spark/scala

标签:, ,

通过8088查看Applications任务的logs时,会报以下错误,

Failed while trying to construct the redirect url to the log server.Log Server url may not be configured java.lang.Exception:Unknown container.Container either has not started or has already completed or doesn't belong to this node at all.

1,修改mapred-site.xml

<property>
 <name>mapreduce.jobhistory.address</name>
 <value>bigserver1:10020</value>
</property>

<property>
 <name>mapreduce.jobhistory.webapp.address</name>
 <value>bigserver1:19888</value>
</property>

2,修改yarn-site.xml

<property>
 <name>yarn.log.server.url</name>
 <value>http://bigserver1:19888/jobhistory/logs</value>
</property>

3,在bigserver1启动mr history

[root@bigserver1 hadoop]# cd /bigdata/hadoop/sbin/
[root@bigserver1 sbin]# ./mr-jobhistory-daemon.sh start historyserver

如果有日志:

container有日志

container有日志

如果没有日志:

container没有日志

container没有日志



转载请注明
作者:海底苍鹰
地址:http://blog.51yip.com/hadoop/2066.html/comment-page-1

1 条评论

  1. lin 留言

    需要分发到其他集群吗