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 日志聚合保留时间