在map或者reduce函数中使用System.out.println打印的信息沾满查看呢?

步骤1:启动history server

/usr/local/hadoop-2.6.0/sbin/mr-jobhistory-daemon.sh start historyserver

步骤2:使用http://hadoop26:19888/jobhistory来查看作业log

意外情况:

如果在查看日志的时候,发生了下面的情况

在yarn-default.xml中有这样的一个配置

<property>
<description>Whether to enable log aggregation. Log aggregation collects
each container's logs and moves these logs onto a file-system, for e.g.
HDFS, after the application completes. Users can configure the
"yarn.nodemanager.remote-app-log-dir" and
"yarn.nodemanager.remote-app-log-dir-suffix" properties to determine
where these logs are moved to. Users can access the logs via the
Application Timeline Server.
</description>
<name>yarn.log-aggregation-enable</name>
<value>false</value>
</property>

我们需要把这个值改为true,也就是在yarn-site.xml中再配置一遍

配置完成后重启historyserver即可。

现在来看看logs的输出吧:

最新文章

  1. 无法在“EntityFramework”已存在的情况下创建影像复制该文件的解决方案
  2. knn原理与实践
  3. Linux/Unix双机建立信任教程
  4. DFS &amp; BFS
  5. JavaScript权威指南 第二章 词法结构
  6. 随便谈谈alphago与人机大战
  7. Socket称&quot;套接字&quot;
  8. Java中各种排序算法
  9. C#简单多线程使用(同步和优先权)
  10. Hibernate插入数据效率测试
  11. 开源网络库的分析libev libevent nginx ....
  12. 使用Understand获取某个函数(方法)的静态度量指标
  13. Web Api初试
  14. 用css属性画出一棵圣诞树
  15. ansible-playbook相关
  16. [Codeforces 750E]New Year and Old Subsequence
  17. HTTP之状态码
  18. rabbitmq安装及基本操作(含集群配置)
  19. linux02
  20. myEtherWallet在线钱包的使用

热门文章

  1. NSUrl 的常见用法
  2. FPGA中的时序分析(四)
  3. Flex应用一览表
  4. 学习练习 java产生6个不同的数字
  5. 多文件目录下makefile文件递归执行编译所有c文件
  6. postgresql安装配置
  7. js设计模式-建造者模式
  8. css透明属性
  9. druid parser
  10. 苹果系列机型专业刷机,解锁,解ID