第五章 Centos下完全分布式部署Hadoop-3.3.1 (3)

第五章 Centos下完全分布式部署Hadoop-3.3.1

八、配置历史服务器 为了查看程序的历史运行情况,需要配置一下历史服务器。具体配置步骤如下: 1.配置mapred-site.xml [delopy@hadoop102 /opt/module/hadoop/etc/hadoop]$ vim mapred-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="http://www.likecs.com/configuration.xsl"?> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. See accompanying LICENSE file. --> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>mapreduce.framework.name</name> <value>yarn</value> <description>指定MapReduce程序运行在Yarn上</description> </property> <property> <name>mapreduce.jobhistory.address</name> <value>hadoop102:10020</value> <description>历史服务器端地址</description> </property> <property> <name>mapreduce.jobhistory.webapp.address</name> <value>hadoop102:19888</value> <description>历史服务器web端地址</description> </property> </configuration> 2.分发配置 [delopy@hadoop102 /opt/module/hadoop/etc/hadoop]$ xsync /opt/module/ 3.启动历史服务器 #1.hadoop102启动历史服务器 [delopy@hadoop102 ~]$ mapred --daemon start historyserver #2.查看历史服务器是否启动 [delopy@hadoop102 ~]$ jps 18800 NameNode 20133 Jps 18905 DataNode 19229 NodeManager 20077 JobHistoryServer 4.查看JobHistory #1.浏览器输入::19888/jobhistory

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zwxysd.html