hadoop開始jobhistory服務器運行命令
sbin/mr-jobhistory-daemon.sh start historyserver
相關配置項在文件mapred-site.xml中配置,包括如下
mapreduce.jobhistory.address jobhistory內部路徑
mapreduce.jobhistory.webapp.address jobhistory網頁路徑
如果在歷史服務器中需要查看日誌信息,需要在yarn-site.xml中進行配置,如下
yarn.log-aggregation-enable yarn日誌聚合
yarn.log-aggregation.retain-seconds 日誌聚合保留時間