标签:time etc ble code val put reg har tor
打开$HADOOP_HOME/etc/hadoop/yarn-site.xml,增加以下配置(在此配置文件中尽量不要使用中文注释)
1 <!--logs-->
2 <property>
3 <name>yarn.log-aggregation-enable</name>
4 <value>true</value>
5 </property>
6 <!-- logs keep time -->
7 <property>
8 <name>yarn.log-aggregation.retain-seconds</name>
9 <value>604800</value>
10 </property>
依次执行以下命令start-dfs.sh,start-yarn.sh.mr-jobhistory-daemon.sh start historyserver启动完毕后jps
接下来执行MapReduce程序
hadoop fs -rm -r -f /usr/tele/hadoop/wcoutput
hadoop jar /opt/module/hadoop-3.1.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.1.jar wordcount /usr/tele/hadoop/wcinput /usr/tele/hadoop/wcoutput
执行完毕后打开mapreduce管理界面(8088),再打开history(19888),然后打开logs
history打不开的请参考https://www.cnblogs.com/tele-share/p/9498698.html
标签:time etc ble code val put reg har tor
原文地址:https://www.cnblogs.com/tele-share/p/9498774.html