一、异常日志
java.lang.ClassCastException: org.apache.hadoop.mapreduce.lib.input.FileSplit cannot be cast to org.apache.hadoop.mapred.InputSplit at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:412) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372
二、解决步骤
1. 从“ClassCastException”错误信息判断是类型转换出错;
2. 引入包为:mahout-core-0.5.jar,hadoop-core-0.20.4.jar;
3. 查看mahout-core-0.5.jar自依赖包为hadoop-core-0.20.2.jar;
4. 删除引入的hadoop-core-0.20.4.jar即可。