突然遇到的,网上查找了很多说法,说是bean没有实现writable接口,nono!其实是一个灰常灰常低级灰常的错误!

Initialization of all the collectors failed. Error in last collector was :class com.xxx.mapreduce.webLog.WebLogMapper

伴随的还有:

 java.lang.ClassCastException:class.com.xx.mapreduce.webLog.WebLogMapper

Initialization of all the collectors failed. Error in last collector was :class com.xx.mapreduce.w

灰常灰常低级灰常的错误!

driver里map的输出的类型错了

job.setMapOutputKeyClass(WebLogMapper.class);

应该是输出的数据类型Text.class类型,写成了加载mapper类了

 

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-05-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案