这段时间需要学习Hadoop了,以前一直听说Hadoop,但是从来没有研究过,这几天粗略看完了<Hadoop实战>这本书,对Hadoop编程有了大致的了解.接下来就是多看多写了.以Hadoop自带的例子WordCount程序开始,来记录我的Hadoop学习过程. Hadoop自带例子WordCount.java /** * Licensed under the Apache License, Version 2.0 (the "License"); * you may no…
运行平台:Hadoop 2.6.3 模式:完全分布模式 1.准备统计文本,以一段文字为例:eg.txt The Project Gutenberg EBook of War and Peace, by Leo Tolstoy This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-u…
1.查看hadoop版本 [hadoop@ltt1 sbin]$ hadoop version Hadoop -cdh5.12.0 Subversion http://github.com/cloudera/hadoop -r dba647c5a8bc5e09b572d76a8d29481c78d1a0dd Compiled by jenkins on --29T11:33Z Compiled with protoc From source with checksum 7c45ae7a4592c…
机群搭建好,执行自带wordcount时出现: Input path does not exist: hdfs://ns1/user/root/a.txt 此错误. [root@slave1 hadoop]# ls a.txt dfs1 include libexec name sbin test tmp2 bin etc journal LICENSE.txt NOTICE.txt share tmp zookeeper.out dat…