摘要:
我使用的ubutun,安装用apt-get非常方便。weijianzhongwj@ubuntu:~$ dstat
You did not select any stats, using -cdngy by default.
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw 16 5 77 2 0 1| 181k 147k| 0 ... 阅读全文
摘要:
public OfferInfo parseXml(String content) throws NumberFormatException, XMLStreamException { if (content == null || content.isEmpty()) { return null; } XMLInputFactory factory = XMLInputFactory.newInstance(); XMLStreamReader reader = null; try ... 阅读全文
摘要:
1.先去hadoop官网下载hadoop的源码http://svn.apache.org/repos/asf/hadoop/common/trunk2.下载maven3,当前hadoop的最新版必须使用maven3编译3.到hadoop下载源码目录执行mvn clean install;mvn eclipse:eclipse;4.将源码导入eclipse;5.在eclipse设置执行的WordCount.java的jvm启动参数,最少需要两个,输入目录和输出目录6.然后就可以设置断点进行调试了,我们在处理mapreduce的主干流程上设置断点org.apache.hadoop.mapred.L 阅读全文