wordcount程序出现map 100% reduce 0%问题的解决方法

运行wordcount程序一直停在map 100% reduce 0%,
input文件夹的内容:
其中:
f1.txt中的内容为:hello hadoop
f2.txt中的内容为:hello hadoop
f3.txt中的内容为:hello world
 
 
解决方法:
在/etc/hosts中增加以下红色一行,其中第一列为127.0.0.1,第二列为主机名称:
 
然后重新使用start-all.sh启动hadoop,然后执行wordcount程序,然后可以看到执行成功:
 
查看执行结果:
posted @ 2014-11-05 17:34  无措  阅读(2285)  评论(1编辑  收藏  举报