JobHistory line error: redirect failed for container_1400260444475_3309_01_000001

My MR mission completed successfully. But when I check his history with an error:

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

Also my HistoryServer is working fine. Well, I can view old jobs (retired) from the JobHistory user interface. Only for the latest assignments is missing.

Do I need to change the logging properties in the log, the storage period?

Thanks in advance!

+7
mapreduce hadoop yarn
source share
3 answers

I fixed this by adding the actual hostname instead of 0.0.0.0 in mapred-site.xml

 <name>mapreduce.jobhistory.address </name> <value>hostName:10020</value> <name>mapreduce.jobhistory.webapp.address</name> <value>hostName:19888</value> 
+2
source share

Try the following steps.

  • add to mapred-site.xml
 <name>mapreduce.jobhistory.address </name> <value>hostName:10020</value> <name>mapreduce.jobhistory.webapp.address</name> <value>hostName:19888</value> 
  1. add to yarn-site.xml
 <property> <name>yarn.log.server.url</name> <value>http://<LOG_SERVER_HOSTNAME>:19888/jobhistory/logs</value> </property> 
  1. start history server with $ mr-jobhistory-daemon.sh start historyserver
+2
source share

And double check that the map history server is working!

 service hadoop-mapreduce-historyserver status 

And available:

 curl localhost:19888 -I 
0
source share

All Articles