Type mismatch in key from map: expected org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable

后端 未结 4 1770
情话喂你
情话喂你 2020-12-17 09:22

I am trying to run a map/reducer in java. Below are my files

WordCount.java

package counter;


public class          


        
4条回答
  •  春和景丽
    2020-12-17 09:44

    This may not be your issue but I had this silly issue once. Make sure you are not mixing the old and the new libraries i.e. mapred vs mapreduce. Annotate @Overide on your map and reduce methods. If you see errors you are not properly overriding the methods.

提交回复
热议问题