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

  1. <property>  
  2.  <name>mapreduce.jobhistory.address</name>  
  3.  <value>bigserver1:10020</value>  
  4. </property>  
  5.   
  6. <property>  
  7.  <name>mapreduce.jobhistory.webapp.address</name>  
  8.  <value>bigserver1:19888</value>  
  9. </property>  

2,修改yarn-site.xml

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

3,在bigserver1启动mr history

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

如果有日志:

container有日志

container有日志

如果没有日志:

container没有日志

container没有日志



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

1 条评论

  1. lin 留言

    需要分发到其他集群吗