运行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程序,然后可以看到执行成功:

查看执行结果:
