Hadoop 历史服务器配置

概述

Hadoop历史服务器默认情况下是没有启动的,需要自己配置和启动该服务。在步骤开始之前,建议先把hdfs和yarn停掉:stop-dfs.sh、stop-yarn.sh。然后,您需要在mapred-site.xml文件中添加一些配置,以满足基本使用需求。例如,在mapred-site.xml中添加以下配置(注意根据自己的ip进行修改):



    mapreduce.jobhistory.address
    ip:10020



    mapreduce.jobhistory.webapp.address
    ip:19888




    mapreduce.jobhistory.done-dir
    /history/done



    mapreduce.jobhistory.intermediate-done-dir
    /history/done_intermediate

接下来,您需要启动hdfs和yarn!

在ip启动历史服务器

mapred --daemon start historyserver

查看历史服务器是否启动

jps


请使用浏览器的分享功能分享到微信等