错误异常:
java.lang.Exception: java.lang.ClassCastException: org.apache.hadoop.io.BytesWritable cannot be cast to org.apache.hadoop.io.ByteWritable
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:406)
Caused by: java.lang.ClassCastException: org.apache.hadoop.io.BytesWritable cannot be cast to org.apache.hadoop.io.ByteWritable
at com.czxy.demo3.WordCountMap.map(WordCountMap.java:17)
原因:自定义InputFromat后,没注意细节!!!
当写map时:
大致一看,没什么问题,再仔细看看,也没什么问题,但是就是报错!!!!
具体原因: