Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 991 Bytes

15.md

File metadata and controls

48 lines (33 loc) · 991 Bytes

配置历史服务器

为了方便查看程序的历史运行情况,我们需要配置一下历史服务器:

[root@hadoop01 hadoop]# vim mapred-site.xml 

[root@hadoop01 hadoop]# pwd
/opt/hadoop-3.3.2/etc/hadoop

如下:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>

<property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
</property>
<property>
    <name>mapreduce.jobhistory.address</name>
    <value>hadoop01:10020</value>
</property>
<property>
    <name>mapreduce.jobhistory.webapp.address</name>
    <value>hadoop02:19888</value>
</property>

</configuration>

10020:内部端口

19888:用户看的端口

分发:

rsync -av /export/servers/hadoop-3.3.2/etc/hadoop/ root@hadoop02:/export/servers/hadoop-3.3.2/etc/hadoop/

rsync -av /export/servers/hadoop-3.3.2/etc/hadoop/ root@hadoop03:/export/servers/hadoop-3.3.2/etc/hadoop/