hadoop-配置history server

history server配置:
mapred-site.xml


    
        mapreduce.framework.name
        yarn
    
    
    
        mapreduce.jobhistory.address
        hadoop-4:10020
    
    
    
        mapreduce.jobhistory.webapp.address
        hadoop-4:19888
    

yarn-site.xml


 
   yarn.log-aggregation-enable
   true
 

 
   yarn.log.server.url
   http://hadoop-4:19888/jobhistory/logs
 

 
   yarn.log-aggregation.retain-seconds
   6048000
 

启动history server
mapred --daemon start historyserver
history server web端
http://hadoop-4:19888/jobhistory

你可能感兴趣的:(hadoop)