运行wordcount程序一直停在map 100% reduce 0%,
wordcount程序出现map 100% reduce 0%问题的解决方法
wordcount程序出现map 100% reduce 0%问题的解决方法
input文件夹的内容:
wordcount程序出现map 100% reduce 0%问题的解决方法
wordcount程序出现map 100% reduce 0%问题的解决方法
其中:
f1.txt中的内容为:hello hadoop
f2.txt中的内容为:hello hadoop
f3.txt中的内容为:hello world
 
 
解决方法:
在/etc/hosts中增加以下红色一行,其中第一列为127.0.0.1,第二列为主机名称:
wordcount程序出现map 100% reduce 0%问题的解决方法
wordcount程序出现map 100% reduce 0%问题的解决方法
 
然后重新使用start-all.sh启动hadoop,然后执行wordcount程序,然后可以看到执行成功:
wordcount程序出现map 100% reduce 0%问题的解决方法
 
查看执行结果:
wordcount程序出现map 100% reduce 0%问题的解决方法
wordcount程序出现map 100% reduce 0%问题的解决方法

相关文章:

  • 2021-09-22
  • 2021-08-10
  • 2021-11-04
  • 2021-09-24
  • 2021-10-31
  • 2021-12-18
  • 2021-10-08
  • 2022-01-10
猜你喜欢
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案