写MapReduce程序时遇到错误Error: INFO - Job job_local1832672383_0001 failed with state FAILED due to: NA

写MapReduce程序时遇到错误Error: INFO - Job job_local1832672383_0001 failed with state FAILED due to: NA

查看发现有错误

第一次遇到这个问题时候,我查了很久没有查出来~ 网上的资料也很少所以便记录一下这次的bug!!其实原理很简单,我自己类型弄错了哭死~~~

找寻方法如下~~

需要重新查看自己所输入的类型是否一致!!

写MapReduce程序时遇到错误Error: INFO - Job job_local1832672383_0001 failed with state FAILED due to: NA_第1张图片

因此将IntWritable 改为LongWritable就可以了

下图为我的Mapper代码

写MapReduce程序时遇到错误Error: INFO - Job job_local1832672383_0001 failed with state FAILED due to: NA_第2张图片

你可能感兴趣的:(Hadoop,Java基础)